Skip to content

M_Cyjb_Text_LineLocatorUtil_GetSpan

CYJB edited this page Mar 20, 2024 · 7 revisions

LineLocatorUtil.GetSpan 方法

返回指定文本范围的行位置范围。

Namespace: Cyjb.Text
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6

语法

C#

public static LinePositionSpan GetSpan(
	this LineLocator? locator,
	TextSpan span
)

参数

 

locator
Type: Cyjb.Text.LineLocator
行定位器。
span
Type: Cyjb.Text.TextSpan
要转换的文本范围。

返回值

Type: LinePositionSpan
指定文本范围对应的行位置范围。

备注

在 Visual Basic 和 C# 中,这个方法可以当成为类型LineLocator的实例方法来调用。在采用实例方法语法调用这个方法时,请省略第一个参数。请参考 扩展方法 (Visual Basic)扩展方法 (C# 编程指南) 获取更多信息。

参见

Reference

LineLocatorUtil 类
Cyjb.Text 命名空间

Clone this wiki locally