GetComputedStyle method

Gets the rendered style, such as bold, italic, and so on, for the element containing a markup pointer.

Syntax

HRESULT retVal = object.GetComputedStyle(pPointer, ppComputedStyle);

Parameters

  • pPointer [in]
    Type: IMarkupPointer

    A pointer to an IMarkupPointer interface that specifies the position at which to get the rendered style.

  • ppComputedStyle [out]
    Type: IHTMLComputedStyle

    A pointer to a variable that receives an IHTMLComputedStyle interface pointer for the object that accesses the rendered style information.

Return value

Type: HRESULT

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