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
xintIndex of current character in the text.
yintIndex of current line in the text.
deltaXintHorizontal displacement.
deltaYintVertical displacement.
ptPointPosition to update.
endPosboolSpecifies 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
xintIndex of current character in the text.
yintIndex of current line in the text.
deltaXintHorizontal displacement.
deltaYintVertical displacement.
chintHorizontal constituent of the position to update.
lnintVertical constituent of the position to update.
endPosboolSpecifies whether position represents end of range.
Returns
- bool
True if succeed; otherwise false.