Selection.XML Property
Returns a String that represents the XML text in the specified object.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
ReadOnly Property XML ( _
DataOnly As Boolean _
) As String
Get
'Usage
Dim instance As Selection
Dim DataOnly As Boolean
Dim value As String
value = instance.XML(DataOnly)
string this[
bool DataOnly
] { get; }
Parameters
- DataOnly
Type: System.Boolean
Optional Boolean. True returns the text of the XML without the Word XML markup. The default setting is False.
Property Value
Type: System.String