IIndentationManagerService.GetIndentation 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取指定的所需缩进行为 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)
参数
- buffer
- ITextBuffer
- explicitFormat
- Boolean
如果该格式是由显式用户请求引起的,则为 true (例如) 格式选择;如果格式是某些用户操作的副作用 (例如,键入换行符) ,则为 false。
- convertTabsToSpaces
- Boolean
如果应将制表符转换为空格,则为 True。
- tabSize
- Int32
所需的制表符大小。
- indentSize
- Int32
所需缩进。