IIndentationManagerService.UseSpacesForWhitespace 方法

定义

确定在设置格式时是否应使用空格或制表符 buffer

public:
 bool UseSpacesForWhitespace(Microsoft::VisualStudio::Text::ITextBuffer ^ buffer, bool explicitFormat);
public bool UseSpacesForWhitespace (Microsoft.VisualStudio.Text.ITextBuffer buffer, bool explicitFormat);
abstract member UseSpacesForWhitespace : Microsoft.VisualStudio.Text.ITextBuffer * bool -> bool
Public Function UseSpacesForWhitespace (buffer As ITextBuffer, explicitFormat As Boolean) As Boolean

参数

buffer
ITextBuffer

要设置格式的文本行上的位置。

explicitFormat
Boolean

如果该格式是由显式用户请求引起的,则为 true (例如) 格式选择;如果格式是某些用户操作的副作用 (例如,键入换行符) ,则为 false。

返回

Boolean

如果应使用空格,则为 true。

适用于