DWRITE_INLINE_OBJECT_METRICS structure (dwrite.h)

Contains properties describing the geometric measurement of an application-defined inline object.

Syntax

struct DWRITE_INLINE_OBJECT_METRICS {
  FLOAT width;
  FLOAT height;
  FLOAT baseline;
  BOOL  supportsSideways;
};

Members

width

Type: FLOAT

The width of the inline object.

height

Type: FLOAT

The height of the inline object.

baseline

Type: FLOAT

The distance from the top of the object to the point where it is lined up with the adjacent text. If the baseline is at the bottom, then baseline simply equals height.

supportsSideways

Type: BOOL

A Boolean flag that indicates whether the object is to be placed upright or alongside the text baseline for vertical text.

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Header dwrite.h