[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.VerticalAnchor

VerticalAnchor Enum

Specifies the vertical alignment of text within a shape's text frame.

Use this enum with VerticalAnchor to position text at the top, middle, or bottom of the text frame.

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

Fields

Name Description
AnchorBottom

Aligns text to bottom of text frame.

AnchorMiddle

Centers text vertically.

AnchorTop

Aligns text to top of text frame.