[]
Gets or sets the horizontal anchor for the text frame in the shape.
Use this property to determine how the text frame is anchored horizontally within the shape. To control the horizontal alignment of the text itself, use TextAlignment.
HorizontalAnchor HorizontalAnchor { get; set; }
Property HorizontalAnchor As HorizontalAnchor
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 120, 80);
shape.TextFrame.HorizontalAnchor = HorizontalAnchor.Center;
HorizontalAnchor anchor = shape.TextFrame.HorizontalAnchor;