CTextRange2.GetCountmethod
Gets the count of subranges, including the active subrange in the current range.
Syntax
FUNCTION GetCount () AS LONG
Return value
The count of subranges not including the active one.
Description
Gets the count of subranges, including the active subrange in the current range.
Remarks
If you select a range with no or one character, the count will be 1. But if you select a word and then move to a different location, and select a second word not touching the first, then the count is 2.
See AddSubrange to add subranges programmatically.
Reference
- Defined in AfxNova/CTextRange2.inc:869
- Documented in Windows/WIndows Controls/RichEdit/CTextRange2 Class.md
- Topic: CTextRange2 Class