ITextStrings::DeleteRange method

Deletes the contents of a given range.

Syntax


HRESULT DeleteRange(
  [in]  ITextRange2 *pRange
);

Parameters

pRange [in]

Type: ITextRange2*

The range to delete.

Return value

Type: HRESULT

If the method succeeds, it returns S_OK. If the method fails, it returns one of the following COM error codes. For more information about COM error codes, see Error Handling in COM.

Return codeDescription
S_FALSE

Range is not degenerate.

E_OUTOFMEMORY

Insufficient memory.

 

Remarks

If the text selected by the range is not completely contained by the string, the method fails.

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

ITextStrings

 

 

Community Additions

ADD
Show:
© 2014 Microsoft