Compartilhar via


RemoveSegment method

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

Syntax

HRESULT retVal = object.RemoveSegment(pISegment);

Parameters

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).