Partager via


BodyProperties.Anchor Propriété

Définition

Anchor

Représente l’attribut suivant dans le schéma : ancre

[DocumentFormat.OpenXml.SchemaAttr(0, "anchor")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.TextAnchoringTypeValues> Anchor { get; set; }
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.TextAnchoringTypeValues> Anchor { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(0, "anchor")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.TextAnchoringTypeValues>? Anchor { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("anchor")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.TextAnchoringTypeValues>? Anchor { get; set; }
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.TextAnchoringTypeValues>? Anchor { get; set; }
member this.Anchor : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.TextAnchoringTypeValues> with get, set
[<DocumentFormat.OpenXml.SchemaAttr(0, "anchor")>]
member this.Anchor : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.TextAnchoringTypeValues> with get, set
[<DocumentFormat.OpenXml.SchemaAttr("anchor")>]
member this.Anchor : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.TextAnchoringTypeValues> with get, set
Public Property Anchor As EnumValue(Of TextAnchoringTypeValues)

Valeur de propriété

Retourne EnumValue<T>.

Attributs

Remarques

Les informations suivantes de la norme internationale ECMA ECMA-376 peuvent être utiles lors de l’utilisation de cette classe.

Spécifie la position d’ancrage du dans txBody la forme. Si cet attribut est omis, la valeur , c’est-à-diret top, est implicite.

Considérez le code DrawingML suivant :

<p:txBody>  
  <a:bodyPr anchor="ctr" … />  
  …  
</p:txBody>  

Ici, le texte est aligné verticalement au centre de la forme dans laquelle il est contenu.

Les valeurs possibles pour cet attribut sont définies par le ST_TextAnchoringType type simple.

S’applique à