Method UpdatePos
UpdatePos(int, int, int, int, ref Point, bool)
Updates specified position by DeltaX and DeltaY values.
public static bool UpdatePos(int x, int y, int deltaX, int deltaY, ref Point pt, bool endPos)
Parameters
x
intIndex of current character in the text.
y
intIndex of current line in the text.
deltaX
intHorizontal displacement.
deltaY
intVertical displacement.
pt
PointPosition to update.
endPos
boolSpecifies whether position represents end of range.
Returns
- bool
True if succeed; otherwise false.
UpdatePos(int, int, int, int, ref int, ref int, bool)
Updates specified position by DeltaX and DeltaY values.
public static bool UpdatePos(int x, int y, int deltaX, int deltaY, ref int ch, ref int ln, bool endPos)
Parameters
x
intIndex of current character in the text.
y
intIndex of current line in the text.
deltaX
intHorizontal displacement.
deltaY
intVertical displacement.
ch
intHorizontal constituent of the position to update.
ln
intVertical constituent of the position to update.
endPos
boolSpecifies whether position represents end of range.
Returns
- bool
True if succeed; otherwise false.