ITextStrings::SuffixTop method (tom.h)

Suffixes a string to the top string in the collection.

Syntax

HRESULT SuffixTop(
  [in] BSTR        bstr,
  [in] ITextRange2 *pRange
);

Parameters

[in] bstr

Type: BSTR

The text to suffix to the top string.

[in] pRange

Type: ITextRange2*

The range with the desired character formatting.

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 code Description
E_OUTOFMEMORY
Insufficient memory.

Remarks

This method is similar to ITextStrings::Append, but appends a string instead of a range.

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

See also

ITextStrings