TextPosition

Description

struct Tinman.Core.Formatting.TextPosition

Represents a position in a IText.

Public / Constants

Zero


public static readonly attribute Zero → (TextPosition)

The text position at row, column and offset zero.

Public / Constructors

Text​Position


public constructor TextPosition → (3)

offset in : int32

See Offset.

row in : int32

See Row.

column in : int32

See Column.

Creates a new instance of TextPosition.

Public / Methods

Add


[Pure]
public method Add → (1)

offset in : TextPosition

The text offset to add.

returns → TextPosition

The resulting text position.

Adds the given offset in to this text position.

Sub


[Pure]
public method Sub → (1)

columns in : int32

The columns to subtract.

returns → TextPosition

The resulting text position.

Subtracts the given columns in from this text position.

Public / Attributes

Column


public readonly attribute Column → (int32)

The zero-based column index in Row.

See also

IText.LineRange

Offset


public readonly attribute Offset → (int32)

The character offset.

See also

IText.Length

Row


public readonly attribute Row → (int32)

The zero-based line index.

See also

IText.LineCount