Méthode ITextRange2 ::SetGravity (tom.h)

Définit la gravité de cette plage.

Syntaxe

HRESULT SetGravity(
  [in] long Value
);

Paramètres

[in] Value

Type : long

Nouvelle valeur de gravité, qui peut être l’une des suivantes.

tomGravityUI

tomGravityBack

tomGravityFore

tomGravityIn

tomGravityOut

Valeur retournée

Type : HRESULT

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

Spécifications

Condition requise Valeur
Client minimal pris en charge Windows 8 [applications de bureau uniquement]
Serveur minimal pris en charge Windows Server 2012 [applications de bureau uniquement]
Plateforme cible Windows
En-tête tom.h
DLL Msftedit.dll

Voir aussi

ITextRange2

ITextRange2 ::GetGravity