Method GetSearchSelectionForLine
GetSearchSelectionForLine(int, out int, out int, out SelectionType, out Rectangle)
When implemented by a class, sets left and right parameter to the first and last selected characters within specified line, when edit control is in search selection mode.
bool GetSearchSelectionForLine(int index, out int left, out int right, out SelectionType searchSelType, out Rectangle searchSelRect)
Parameters
index
intIndex of line within Edit control content.
left
intReceives index of the first selected character.
right
intReceives index of the last selected character.
searchSelType
SelectionTypeReceives search selection type.
searchSelRect
RectangleReceives search selection rectangle.
Returns
- bool
True if succeed; otherwise false.