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
indexintIndex of line within Edit control content.
leftintReceives index of the first selected character.
rightintReceives index of the last selected character.
searchSelTypeSelectionTypeReceives search selection type.
searchSelRectRectangleReceives search selection rectangle.
Returns
- bool
True if succeed; otherwise false.