TextSelection.Parent Property

Gets the immediate parent object of a TextSelection object.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
ReadOnly Property Parent As TextDocument
TextDocument Parent { get; }
property TextDocument^ Parent {
    TextDocument^ get ();
}
abstract Parent : TextDocument with get
function get Parent () : TextDocument

Property Value

Type: EnvDTE.TextDocument
A TextDocument object.

.NET Framework Security

See Also

Reference

TextSelection Interface

EnvDTE Namespace

Other Resources

How to: Compile and Run the Automation Object Model Code Examples