Range.ModifyEnclosure Method
Adds, modifies, or removes an enclosure around the specified character or characters.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Sub ModifyEnclosure ( _
ByRef Style As Object, _
ByRef Symbol As Object, _
ByRef EnclosedText As Object _
)
'Usage
Dim instance As Range
Dim Style As Object
Dim Symbol As Object
Dim EnclosedText As Object
instance.ModifyEnclosure(Style, Symbol, _
EnclosedText)
void ModifyEnclosure(
ref Object Style,
ref Object Symbol,
ref Object EnclosedText
)
Parameters
- Style
Type: System.Object%
Required Object. The style of the enclosure. Can be any WdEncloseStyle constant.
- Symbol
Type: System.Object%
Optional Object. The symbol in which to enclose the specified range. Can be any WdEnclosureType constant.
- EnclosedText
Type: System.Object%
Optional Object. The characters that you want to enclose. If you include this argument, Microsoft Word replaces the specified range with the enclosed characters. If you don't specify text to enclose, Microsoft Word encloses all text in the specified range.