ISECEditPresentationState::GetSelection

Retrieves the positions that specifies the current selection. The position information returned is that which would be needed to call ISECEditBuffer::GetTextBuffer. This method adjusts for the presence of virtual space and for line ends when in full line select mode.

Defined in: ISECEditPresentationState.h

Syntax

virtual BOOL GetSelection(SECEditLineColPair& lcpSel) const = 0;

virtual BOOL GetSelection(int& nStartLine, int& nStartCol, int& nEndLine, int& nEndCol) const = 0;

Parameters

lcpSel

Output parameter. The selection starting and ending positions.

nStartLine

Output parameter. The selection starting line index.

nStartCol

Output parameter. The selection starting column index.

nEndCol

Output parameter. The selection ending column index.

See Also

ISECEditPresentationState GetColumnSelect GetSelectionType IsSelecting