Table of Contents

Method UpdatePos

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

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 int

Index of current character in the text.

y int

Index of current line in the text.

deltaX int

Horizontal displacement.

deltaY int

Vertical displacement.

pt Point

Position to update.

endPos bool

Specifies 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 int

Index of current character in the text.

y int

Index of current line in the text.

deltaX int

Horizontal displacement.

deltaY int

Vertical displacement.

ch int

Horizontal constituent of the position to update.

ln int

Vertical constituent of the position to update.

endPos bool

Specifies whether position represents end of range.

Returns

bool

True if succeed; otherwise false.