CD2DTextFormat Class

Visual Studio 2010 SP1 is required.

A wrapper for IDWriteTextFormat.

class CD2DTextFormat : public CD2DResource;

Members

Public Constructors

Name

Description

CD2DTextFormat::CD2DTextFormat

Constructs a CD2DTextFormat object.

CD2DTextFormat::~CD2DTextFormat

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

Public Methods

Name

Description

CD2DTextFormat::Create

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

CD2DTextFormat::Destroy

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

CD2DTextFormat::Get

Returns IDWriteTextFormat interface

CD2DTextFormat::GetFontFamilyName

Gets a copy of the font family name.

CD2DTextFormat::GetLocaleName

Gets a copy of the locale name.

CD2DTextFormat::IsValid

Checks resource validity (Overrides CD2DResource::IsValid.)

CD2DTextFormat::ReCreate

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

Public Operators

Name

Description

CD2DTextFormat::operator IDWriteTextFormat*

Returns IDWriteTextFormat interface

Protected Data Members

Name

Description

CD2DTextFormat::m_pTextFormat

A pointer to an IDWriteTextFormat.

Inheritance Hierarchy

CObject

CD2DResource

CD2DTextFormat

Requirements

Header: afxrendertarget.h

See Also

Other Resources

MFC Classes