Partager via


GetTextDescent method

Determines the current position of a behavior and aligns it with the baseline position of surrounding elements in the Web page.

Syntax

HRESULT retVal = object.GetTextDescent(plDescent);

Parameters

  • plDescent [out]
    Type: LONG

    A pointer to a LONG that receives information on the layout of elements surrounding the binary behavior.

Return value

Type: HRESULT

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

Remarks

This method is called by MSHTML in Microsoft Internet Explorer 6 and later versions when a behavior implements the IElementBehaviorLayout2 interface. This method returns the pixel offset of the baseline of the behavior with respect to the bottom of the element. This pixel offset measurement is called the "descent."