共用方式為


TextDocument.Selection Property

Definition

Gets an object representing the current selection on the TextDocument object.

public:
 property EnvDTE::TextSelection ^ Selection { EnvDTE::TextSelection ^ get(); };
public:
 property EnvDTE::TextSelection ^ Selection { EnvDTE::TextSelection ^ get(); };
[System.Runtime.InteropServices.DispId(1)]
public EnvDTE.TextSelection Selection { [System.Runtime.InteropServices.DispId(1)] get; }
[<System.Runtime.InteropServices.DispId(1)>]
[<get: System.Runtime.InteropServices.DispId(1)>]
member this.Selection : EnvDTE.TextSelection
Public ReadOnly Property Selection As TextSelection

Property Value

A TextSelection object.

Attributes

Applies to