共用方式為


IEditorOperations.Indent 方法

如果有多行的選取範圍,則將選取範圍縮排,否則在插入號位置插入 Tab 字元。

命名空間:  Microsoft.VisualStudio.Text.Operations
組件:  Microsoft.VisualStudio.Text.UI (在 Microsoft.VisualStudio.Text.UI.dll 中)

語法

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

傳回值

類型:Boolean
如果編輯成功則為 true,否則為 false。

.NET Framework 安全性

請參閱

參考

IEditorOperations 介面

Microsoft.VisualStudio.Text.Operations 命名空間