TableCellProperties.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 中的以下信息可能很有用。

定义单元格中文本垂直对齐方式。

请考虑下面的示例:

<a:tcPr marL="45720" anchor="ctr"/>  

在此示例中,单元格中的文本将垂直定位到单元格的中心。

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

适用于