Help Center

CRichEditCtx.Selectionmethod

Gets the active selection.

Windowsmethoddocumented

Syntax

PRIVATE FUNCTION CRichEditCtx.Selection () AS ITextSelection PTR

Return value

The active selection. It will be null if there is not active selection.

Description

Gets the active selection.

Example

PRIVATE FUNCTION Selection () AS ITextSelection PTR PRIVATE FUNCTION GetSelection () AS ITextSelection PTR

Reference

  • Defined in AfxNova/CRichEditCtx.inc:4264
  • Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
  • Topic: CRichEditCtx Class