Partager via


IDWriteInlineObject::GetMetrics, méthode (dwrite.h)

IDWriteTextLayout appelle cette fonction de rappel pour obtenir la mesure de l’objet inline.

Syntaxe

HRESULT GetMetrics(
  [out] DWRITE_INLINE_OBJECT_METRICS *metrics
);

Paramètres

[out] metrics

Type : DWRITE_INLINE_OBJECT_METRICS*

Lorsque cette méthode est retournée, contient une structure décrivant la mesure géométrique d’un objet inline défini par l’application. Ces métriques sont en relation avec la ligne de base du texte adjacent.

Valeur retournée

Type : HRESULT

Si cette méthode réussit, elle retourne S_OK. Sinon, elle retourne un code d’erreur HRESULT.

Spécifications

   
Client minimal pris en charge Windows 7, Windows Vista avec SP2 et Mise à jour de plateforme pour Windows Vista [applications de bureau | Applications UWP]
Serveur minimal pris en charge Windows Server 2008 R2, Windows Server 2008 avec SP2 et Platform Update pour Windows Server 2008 [applications de bureau | Applications UWP]
Plateforme cible Windows
En-tête dwrite.h
Bibliothèque Dwrite.lib
DLL Dwrite.dll

Voir aussi

IDWriteInlineObject