Skip to content

M_Cyjb_Text_LocationMap_AddOffset

CYJB edited this page Mar 20, 2024 · 1 revision

LocationMap.AddOffset 方法

添加指定的位置偏移映射。

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

语法

C#

public void AddOffset(
	int offset,
	int mappedOffset
)

参数

 

offset
Type: System.Int32
要映射的偏移。
mappedOffset
Type: System.Int32
映射到的偏移。

Exceptions

 

异常 条件
ArgumentOutOfRangeException offset 小于 0

Remarks

假设已有的最后一项映射是从 x 映射到 y,那么 AddOffset(Int32, Int32) 会添加一项从 x + *offset*y + *mappedOffset* 的映射。

参见

Reference

LocationMap 类
Cyjb.Text 命名空间

Clone this wiki locally