次の方法で共有


IEditorOperations.SelectedText Property

Gets the selected text.

Namespace:  Microsoft.VisualStudio.Text.Operations
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'宣言
ReadOnly Property SelectedText As String
string SelectedText { get; }
property String^ SelectedText {
    String^ get ();
}
abstract SelectedText : string
function get SelectedText () : String

Property Value

Type: System.String
The selected text.

Remarks

In box selection mode, each span of text is separated by a newline character, with an extra newline at the very end.

.NET Framework Security

See Also

Reference

IEditorOperations Interface

Microsoft.VisualStudio.Text.Operations Namespace