RemoveSegment method

Removes a highlight segment from the collection of those that are highlighted.

Syntax

HRESULT retVal = object.RemoveSegment(pISegment);

Parameters

  • pISegment [in]
    Type: [IHighlightSegment](aa752372(v=vs.85).md)

    Pointer to an IHighlightSegment interface to remove.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

IHighlightRenderingServices::RemoveSegment does not release the IHighlightSegment interface; you still need to call Release to free the IHighlightSegment interface (assuming you called AddRef when you created it).