次の方法で共有


BodyProperties.AnchorCenter Property

Anchor Center.Represents the attribte in schema: anchorCtr

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

Syntax

'宣言
<SchemaAttrAttribute(, "anchorCtr")> _
Public Property AnchorCenter As BooleanValue
    Get
    Set
'使用
Dim instance As BodyProperties
Dim value As BooleanValue

value = instance.AnchorCenter

instance.AnchorCenter = value
[SchemaAttrAttribute(, "anchorCtr")]
public BooleanValue AnchorCenter { get; set; }

Property Value

Type: DocumentFormat.OpenXml.BooleanValue
Returns BooleanValue.

Remarks

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

Specifies the centering of the text box. The way it works fundamentally is to determine the smallest possible "bounds box" for the text and then to center that bounds box accordingly. Note that this is different than paragraph alignment, which aligns the text within the bounds box for the text. This flag is compatible with all of the different types of anchoring. If this attribute is omitted, then a value of 0, meaning off, is implied.

The text within this shape has been both vertically centered with the anchor attribute and horizontally centered with the anchorCtr attribute.

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

The possible values for this attribute are defined by the XML Schema boolean data type.

See Also

Reference

BodyProperties Class

BodyProperties Members

DocumentFormat.OpenXml.Drawing Namespace