Table of Contents

Method PositionChanged

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

PositionChanged(int, int, int, int, IRangeList, IComparer<IRange>)

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

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

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.

list IRangeList

List to update.

comparer IComparer<IRange>

Object that exposes a method to compare two objects.

Returns

bool

True if succeed; otherwise false.