GetComputedStyle method

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


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


  • pPointer [in]
    Type: [IMarkupPointer](aa703614(v=vs.85).md)

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

  • ppComputedStyle [out]
    Type: [IHTMLComputedStyle](aa704235(v=vs.85).md)

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

Return value


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