This interface provides methods that control a fragment of HTML markup in the current editable selection that consists of a single element.
GetElement Retrieves the element to which this segment refers. IsPrimary Determines whether the control element represented by this segment is the primary element of a multi-element selection. SetPrimary Sets or unsets this control element as the primary element in a control selection.
To obtain an IElementSegment interface for a fragment of HTML markup representing an element, use the ISelectionServices::AddElementSegment method.
The selection object uses element segments to mark fragments of HTML markup that are whole elements, in particular control elements such as input and img. They are essentially control selections in the editor and their type is SELECTION_TYPE_Control.
Stock Implementation mshtml.dll Custom Implementation No Inherits from ISegment Header and IDL files mshtml.h, mshtml.idl Minimum availability Internet Explorer 5.5 Minimum operating systems Windows 95, Windows NT 4.0, Windows CE 4.0