[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.ITextFrame.HorizontalAnchor

HorizontalAnchor Property

HorizontalAnchor

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.

Declaration
HorizontalAnchor HorizontalAnchor { get; set; }
Property HorizontalAnchor As HorizontalAnchor
Examples
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 120, 80);
shape.TextFrame.HorizontalAnchor = HorizontalAnchor.Center;
HorizontalAnchor anchor = shape.TextFrame.HorizontalAnchor;