共用方式為


GetSize method

Enables a behavior to use in the layout process.

Syntax

HRESULT retVal = object.GetSize(dwFlags, sizeContent, pptTranslateBy, pptTopLeft, psizeProposed);

Parameters

  • dwFlags [in]
    Type: LONG

    A BEHAVIOR_LAYOUT_MODE enumeration that specifies the layout mode.

  • sizeContent [in]
    Type: SIZE

    A SIZE that specifies the dimensions of the content during rendering.

  • pptTranslateBy [in, out]
    Type: POINT

    A pointer to a POINT structure that specifies the amount to translate the rendered behavior.

  • pptTopLeft [in, out]
    Type: POINT

    A pointer to a POINT structure that specifies the upper-left corner of the rendered behavior.

  • psizeProposed [in, out]
    Type: SIZE

    A pointer to a SIZE structure that specifies the proposed size of the behavior.

Return value

Type: HRESULT

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