M_Cyjb_Text_LocationMap_AddOffset - CYJB/Cyjb GitHub Wiki
添加指定的位置偏移映射。
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
映射到的偏移。
异常 | 条件 |
---|---|
ArgumentOutOfRangeException |
offset 小于 0 。 |
假设已有的最后一项映射是从 x
映射到 y
,那么 AddOffset(Int32, Int32) 会添加一项从 x + *offset*
到 y + *mappedOffset*
的映射。