TableCellProperties.Anchor Property

Anchor.Represents the attribte in schema: anchor

Namespace:  DocumentFormat.OpenXml.Drawing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<SchemaAttrAttribute(, "anchor")> _
Public Property Anchor As EnumValue(Of TextAnchoringTypeValues)
    Get
    Set
'Usage
Dim instance As TableCellProperties
Dim value As EnumValue(Of TextAnchoringTypeValues)

value = instance.Anchor

instance.Anchor = value
[SchemaAttrAttribute(, "anchor")]
public EnumValue<TextAnchoringTypeValues> Anchor { get; set; }

Property Value

Type: DocumentFormat.OpenXml.EnumValue<TextAnchoringTypeValues>
Returns EnumValue<T>.

Remarks

The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.

Defines the alignment of the text vertically within the cell.

Consider the following example:

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

In this example, the text in the cell will be anchored to the center of the cell vertically.

The possible values for this attribute are defined by the ST_TextAnchoringType simple type.

See Also

Reference

TableCellProperties Class

TableCellProperties Members

DocumentFormat.OpenXml.Drawing Namespace