다음을 통해 공유


IIndentationManagerService.GetIndentation Method

Definition

Get the desired indentation behavior for the specified buffer.

public:
 void GetIndentation(Microsoft::VisualStudio::Text::ITextBuffer ^ buffer, bool explicitFormat, [Runtime::InteropServices::Out] bool % convertTabsToSpaces, [Runtime::InteropServices::Out] int % tabSize, [Runtime::InteropServices::Out] int % indentSize);
public void GetIndentation (Microsoft.VisualStudio.Text.ITextBuffer buffer, bool explicitFormat, out bool convertTabsToSpaces, out int tabSize, out int indentSize);
abstract member GetIndentation : Microsoft.VisualStudio.Text.ITextBuffer * bool * bool * int * int -> unit
Public Sub GetIndentation (buffer As ITextBuffer, explicitFormat As Boolean, ByRef convertTabsToSpaces As Boolean, ByRef tabSize As Integer, ByRef indentSize As Integer)

Parameters

buffer
ITextBuffer

Buffer whose indentation behavior to get.

explicitFormat
Boolean

true if the format is due to an explicit user request (e.g. format selection); false if the format is a side-effect of some user action (e.g. typing a newline).

convertTabsToSpaces
Boolean

True if tabs should be converted to spaces.

tabSize
Int32

Desired tab size.

indentSize
Int32

Desired indentation.

Applies to