CD2DTextLayout Class

A wrapper for IDWriteTextLayout.

class CD2DTextLayout : public CD2DResource;

Members

Public Constructors

Name

Description

CD2DTextLayout::CD2DTextLayout

Constructs a CD2DTextLayout object.

CD2DTextLayout::~CD2DTextLayout

The destructor. Called when a D2D text layout object is being destroyed.

Public Methods

Name

Description

CD2DTextLayout::Create

Creates a CD2DTextLayout. (Overrides CD2DResource::Create.)

CD2DTextLayout::Destroy

Destroys a CD2DTextLayout object. (Overrides CD2DResource::Destroy.)

CD2DTextLayout::Get

Returns IDWriteTextLayout interface

CD2DTextLayout::GetFontFamilyName

Copies the font family name of the text at the specified position.

CD2DTextLayout::GetLocaleName

Gets the locale name of the text at the specified position.

CD2DTextLayout::IsValid

Checks resource validity (Overrides CD2DResource::IsValid.)

CD2DTextLayout::ReCreate

Re-creates a CD2DTextLayout. (Overrides CD2DResource::ReCreate.)

CD2DTextLayout::SetFontFamilyName

Sets null-terminated font family name for text within a specified text range

CD2DTextLayout::SetLocaleName

Sets the locale name for text within a specified text range

Public Operators

Name

Description

CD2DTextLayout::operator IDWriteTextLayout*

Returns IDWriteTextLayout interface

Protected Data Members

Name

Description

CD2DTextLayout::m_pTextLayout

A pointer to an IDWriteTextLayout.

Inheritance Hierarchy

CObject

CD2DResource

CD2DTextLayout

Requirements

Header: afxrendertarget.h

See Also

Other Resources

MFC Classes