Table of Contents

Method GetSelectionForLine

Namespace
Alternet.Editor
Assembly
Alternet.Editor.v9.dll

GetSelectionForLine(int, out int, out int)

Sets left and right index of the first and last selected characters within specified line.

public virtual bool GetSelectionForLine(int index, out int left, out int right)

Parameters

index int

Index of line within Edit control content.

left int

Receives index of the first selected character.

right int

Receives index of the last selected character.

Returns

bool

True if succeed; otherwise false.

GetSelectionForLine(int, out int, out int, bool)

protected virtual bool GetSelectionForLine(int index, out int left, out int right, bool checkBounds)

Parameters

index int
left int
right int
checkBounds bool

Returns

bool

GetSelectionForLine(int, out int, out int, bool, SelectionType, Rectangle)

protected bool GetSelectionForLine(int index, out int left, out int right, bool checkBounds, SelectionType selType, Rectangle selRect)

Parameters

index int
left int
right int
checkBounds bool
selType SelectionType
selRect Rectangle

Returns

bool