ContextChangeEventArgs.Selection Property (2007 System)
Gets the selected text, including the XML elements.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
Syntax
'Declaration
Public ReadOnly Property Selection As Selection
'Usage
Dim instance As ContextChangeEventArgs
Dim value As Selection
value = instance.Selection
public Selection Selection { get; }
public:
property Selection^ Selection {
Selection^ get ();
}
public function get Selection () : Selection
Property Value
Type: Selection
A Selection that includes the text and XML elements; nulla null reference (Nothing in Visual Basic) if no text is selected.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.