次の方法で共有


BodyProperties.Anchor Property

Anchor.Represents the attribte in schema: anchor

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

Syntax

'宣言
<SchemaAttrAttribute(, "anchor")> _
Public Property Anchor As EnumValue(Of TextAnchoringTypeValues)
    Get
    Set
'使用
Dim instance As BodyProperties
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.

Specifies the anchoring position of the txBody within the shape. If this attribute is omitted, then a value of t, meaning top, is implied.

Consider the following DrawingML:

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

Here the text is vertically aligned in the center of the shape within which it is contained.

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

See Also

Reference

BodyProperties Class

BodyProperties Members

DocumentFormat.OpenXml.Drawing Namespace