格式说明符的文本范围。
命名空间: Microsoft.VisualStudio.Package
程序集: Microsoft.VisualStudio.Package.LanguageService.10.0(在 Microsoft.VisualStudio.Package.LanguageService.10.0.dll 中)
Microsoft.VisualStudio.Package.LanguageService(在 Microsoft.VisualStudio.Package.LanguageService.dll 中)
Microsoft.VisualStudio.Package.LanguageService.9.0(在 Microsoft.VisualStudio.Package.LanguageService.9.0.dll 中)
Microsoft.VisualStudio.Package.LanguageService.11.0(在 Microsoft.VisualStudio.Package.LanguageService.11.0.dll 中)
语法
声明
Public Overridable Function FormatSpan ( _
buffer As IVsTextLines, _
ts As TextSpan() _
) As Integer
public virtual int FormatSpan(
IVsTextLines buffer,
TextSpan[] ts
)
参数
- ts
类型:array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[]
TextSpan 对象的数组。
返回值
类型:System.Int32
S_OK ,如果方法成功,否则 E_NOTIMPL。
实现
IVsExpansionClient.FormatSpan(IVsTextLines, array<TextSpan[])
备注
此方法首先检查 buffer 相当于在 Source的 IVsTextLines ,并引发 ArgumentException ,否则返回。格式选择活动,此方法将某些 TextSpan 对象来循环和设置它们。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。