BodyProperties.Anchor 属性

定义

Anchor

表示架构中的以下属性:定位点

[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)

属性值

返回 EnumValue<T>

属性

注解

使用此类时,ECMA 国际标准 ECMA-376 中的以下信息可能很有用。

指定 形状内的定位位置 txBody 。 如果省略此属性,则隐含一个值 t,即 top

请考虑以下 DrawingML:

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

此处,文本在包含它的形状的中心垂直对齐。

此属性的可能值由 ST_TextAnchoringType 简单类型定义。

适用于