共用方式為


ITextSelection.Clear Method

Makes the selection zero length, with a start and end position at the logical end of the current selection.

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

Syntax

'宣告
Sub Clear
void Clear()
void Clear()
abstract Clear : unit -> unit 
function Clear()

Remarks

In a forward selection, the logical end is at the right edge of the selection. In a reverse selection, the logical end is at the left edge of the selection.

.NET Framework Security

See Also

Reference

ITextSelection Interface

Microsoft.VisualStudio.Text.Editor Namespace