Skip to content

M_Cyjb_Text_SourceReader_GetLinePositionSpan

CYJB edited this page Mar 23, 2024 · 3 revisions

SourceReader.GetLinePositionSpan 方法

返回指定文本范围的行列位置范围,需要提前 UseLineLocator(Int32)

Namespace: Cyjb.Text
Assembly: Cyjb.Compilers.Runtime (in Cyjb.Compilers.Runtime.dll) Version: 1.0.20+d347ea0351607fb282fdf60a5301f9cccb3ab27e

语法

C#

public <a href="https://github.com/CYJB/Cyjb/wiki/T_Cyjb_Text_LinePositionSpan" target="_blank" rel="noopener noreferrer">Cyjb.Text.LinePositionSpan</a> GetLinePositionSpan(
	<a href="https://github.com/CYJB/Cyjb/wiki/T_Cyjb_Text_TextSpan" target="_blank" rel="noopener noreferrer">Cyjb.Text.TextSpan</a> span
)

参数

 

span
Type: Cyjb.Text.TextSpan
要检查行列位置的文本范围。

返回值

Type: Cyjb.Text.LinePositionSpan
指定文本范围的行列位置范围。

Exceptions

 

异常 条件
InvalidOperationException 未提前调用 UseLineLocator(Int32)

参见

Reference

SourceReader 类
Cyjb.Text 命名空间

Clone this wiki locally