IDWriteTextLayout::SetStrikethrough, méthode (dwrite.h)

Définit le texte barré dans une plage de texte spécifiée.

Syntaxe

HRESULT SetStrikethrough(
  BOOL              hasStrikethrough,
  DWRITE_TEXT_RANGE textRange
);

Paramètres

hasStrikethrough

Type : BOOL

Indicateur booléen qui indique si le barré a lieu dans la plage spécifiée par textRange.

textRange

Type : DWRITE_TEXT_RANGE

Plage de texte à laquelle cette modification s’applique.

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 Mise à jour de plateforme 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

IDWriteTextLayout