[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.ITextFrame.VerticalAnchor

VerticalAnchor Property

VerticalAnchor

Gets or sets the vertical anchor for the text frame in the shape.

The vertical anchor controls whether the text in the shape is aligned to the top, middle, or bottom of the text frame.

Declaration
VerticalAnchor VerticalAnchor { get; set; }
Property VerticalAnchor As VerticalAnchor
Examples
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 10, 10, 120, 60);
ITextFrame textFrame = shape.TextFrame;
textFrame.VerticalAnchor = VerticalAnchor.AnchorMiddle;
VerticalAnchor verticalAnchor = textFrame.VerticalAnchor;