ITextRange2::AddSubrange method (tom.h)
Adds a subrange to this range.
Syntax
HRESULT AddSubrange(
[in] long cp1,
[in] long cp2,
[in] long Activate
);
Parameters
[in] cp1
Type: long
The active-end character position of the subrange.
[in] cp2
Type: long
The anchor-end character position of the subrange.
[in] Activate
Type: long
The activate parameter. If this parameter is tomTrue, the new subrange is the active subrange, with cp1 as the active end, and cp2 the anchor end.
Return value
Type: HRESULT
If the method succeeds, it returns NOERROR. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | tom.h |
DLL | Msftedit.dll |