[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.HorizontalAnchor

HorizontalAnchor Enum

Specifies the horizontal anchor for the text frame in a shape.

Use this enum with HorizontalAnchor to control how a shape's text frame is positioned horizontally within the shape. To control the horizontal alignment of the text itself, use TextAlignment instead.

Namespace: GrapeCity.Documents.Excel.Drawing
Assembly: DS.Documents.Excel.dll
Syntax
public enum HorizontalAnchor
Public Enum HorizontalAnchor
Examples
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 10, 10, 120, 60);
ITextFrame textFrame = shape.TextFrame;
textFrame.TextRange.Text = "Hello";
textFrame.HorizontalAnchor = HorizontalAnchor.Center;

Fields

Name Description
Center

Text is centered horizontally.

None

No alignment.