Source.GetLineLength 方法

为指定获取行的长度。

命名空间:  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.11.0(在 Microsoft.VisualStudio.Package.LanguageService.11.0.dll 中)
  Microsoft.VisualStudio.Package.LanguageService.9.0(在 Microsoft.VisualStudio.Package.LanguageService.9.0.dll 中)

语法

声明
Public Function GetLineLength ( _
    line As Integer _
) As Integer
public int GetLineLength(
    int line
)

参数

返回值

类型:System.Int32
表示字符数行的编号。

备注

向前此方法以 GetLengthOfLine 方法的调用在 IVsTextLines 对象传递给 Source 类构造函数。 ,如果行号超出范围,将引发异常。

.NET Framework 安全性

请参见

参考

Source 类

Microsoft.VisualStudio.Package 命名空间