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

  • 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.

See Also

Reference

Range Interface

Range Members

Microsoft.Office.Interop.Word Namespace