GetMasterElement method

Retrieves the master element when a markup container belongs to a document that is a child of another one (like a frame within a frameSet).

Syntax


HRESULT retVal = object.GetMasterElement(ppElementMaster);

Parameters

ppElementMaster [out]

Type: IHTMLElement

Address of a pointer to a variable that receives an IHTMLElement interface pointer for the interface that receives the master element. If there is no master element, ppElementMaster will be set to NULL.

Return value

Type: HRESULT

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

 

 

Show: