Partager via


CD2DTextLayout::CD2DTextLayout

Constructs a CD2DTextLayout object.

CD2DTextLayout(
   CRenderTarget* pParentTarget,
   const CString& strText,
   CD2DTextFormat& textFormat,
   const CD2DSizeF& sizeMax,
   BOOL bAutoDestroy = TRUE
);

Parameters

  • pParentTarget
    A pointer to the render target.

  • strText
    A CString object that contains the string to create a new CD2DTextLayout object from.

  • textFormat
    A CString object that contains the format to apply to the string.

  • sizeMax
    The size of the layout box.

  • bAutoDestroy
    Indicates that the object will be destroyed by owner (pParentTarget).

Requirements

Header: afxrendertarget.h

See Also

Reference

CD2DTextLayout Class