ITextRange2::AddSubrange method

Adds a subrange to this range.

Syntax


HRESULT AddSubrange(
  [in]  long cp1,
  [in]  long cp2,
  [in]  long Activate
);

Parameters

cp1 [in]

Type: long

The active-end character position of the subrange.

cp2 [in]

Type: long

The anchor-end character position of the subrange.

Activate [in]

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

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Tom.h

DLL

Msftedit.dll

See also

ITextRange2

 

 

Community Additions

ADD
Show:
© 2014 Microsoft