Skip to main content

Windows Dev Center

ITextStrings::Remove method

Removes a string from a string collection, starting at an index.

Syntax


HRESULT Remove(
  [in] long iString,
  [in] long cString
);

Parameters

iString [in]

Type: long

The string index.

cString [in]

Type: long

The count of strings to remove.

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
E_INVALIDARG

Invalid argument.

 

Remarks

The index is relative to the top of the collection, so iString = 0 removes the top string (cString must be 1), iString = –1 removes the one below the top string (and the top string if cString = 2), and so on.

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