Table of Contents

Method PositionChanged

Namespace
Alternet.Syntax
Assembly
Alternet.Syntax.v9.dll

PositionChanged(int, int, int, int)

Updates specified position by DeltaX and DeltaY values for any errors in the collection.

public virtual bool PositionChanged(int x, int y, int deltaX, int deltaY)

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.

Returns

bool

True if succeed; otherwise false.

PositionChanged(int, int, int, int, IComparer<ISyntaxError>)

Updates all syntax errors starting from specified position.

public virtual bool PositionChanged(int x, int y, int deltaX, int deltaY, IComparer<ISyntaxError> comparer)

Parameters

x int

The X-constituent of the Point value that specifies start position to change.

y int

The Y-constituent of the Point value that specifies start position to change.

deltaX int

Specifies horizontal displacement.

deltaY int

Specifies vertical displacement.

comparer IComparer<ISyntaxError>

Search criteria.

Returns

bool

True if succeed; otherwise false.