BodyProperties.AnchorCenter Property

Definition

Anchor Center

Represents the following attribute in the schema: anchorCtr

[DocumentFormat.OpenXml.SchemaAttr(0, "anchorCtr")]
public DocumentFormat.OpenXml.BooleanValue AnchorCenter { get; set; }
public DocumentFormat.OpenXml.BooleanValue AnchorCenter { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(0, "anchorCtr")]
public DocumentFormat.OpenXml.BooleanValue? AnchorCenter { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("anchorCtr")]
public DocumentFormat.OpenXml.BooleanValue? AnchorCenter { get; set; }
public DocumentFormat.OpenXml.BooleanValue? AnchorCenter { get; set; }
member this.AnchorCenter : DocumentFormat.OpenXml.BooleanValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr(0, "anchorCtr")>]
member this.AnchorCenter : DocumentFormat.OpenXml.BooleanValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr("anchorCtr")>]
member this.AnchorCenter : DocumentFormat.OpenXml.BooleanValue with get, set
Public Property AnchorCenter As BooleanValue

Property Value

Returns BooleanValue.

Attributes

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.

Applies to