Home COM GDI+ WebBrowser Data Access

IElementSegment Interface

 

IID_IElementSegment

{3050F68F-98B5-11CF-BB82-00AA00BDCE0B}

 

 

This interface provides methods that control a fragment of HTML markup in the current editable selection that consists of a single element.

 

Documentation: IElementSegment Interface

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

IElementSegment Methods

Description

GetElement

Retrieves the element to which this segment refers.

SetPrimary

Sets or unsets this control element as the primary element in a control selection.

IsPrimary

Determines whether the control element represented by this segment is the primary element of a multi-element selection.

 

GetElement

 

FUNCTION IElementSegment_GetElement ( _
  BYVAL pthis AS DWORD PTR _
, BYREF ppIElement AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[3] USING IElementSegment_GetElement (pthis, ppIElement) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

SetPrimary

 

FUNCTION IElementSegment_SetPrimary ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL fPrimary AS LONG _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[4] USING IElementSegment_SetPrimary (pthis, fPrimary) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

IsPrimary

 

FUNCTION IElementSegment_IsPrimary ( _
  BYVAL pthis AS DWORD PTR _
, BYREF pfPrimary AS LONG _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[4] USING IElementSegment_IsPrimary (pthis, pfPrimary) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Page last updated on Monday, 03 April 2006 19:51:39 +0200