共用方式為


IEditorOperations.Unindent Method

Unindents the text.

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

Syntax

'宣告
Function Unindent As Boolean
bool Unindent()
bool Unindent()
abstract Unindent : unit -> bool 
function Unindent() : boolean

Return Value

Type: System.Boolean
true if the edit succeeded, otherwise false.

Remarks

If there is a multi-line selection, unindents the selection. If there is a single line selection, removes up to a tab's worth of white space before the start of the selection. If there is no selection, removes up to a tab's worth of white space before the caret position.

.NET Framework Security

See Also

Reference

IEditorOperations Interface

Microsoft.VisualStudio.Text.Operations Namespace