[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.ITextRange.TextAlignment

TextAlignment Property

TextAlignment

Gets or sets the horizontal alignment of the text.

Declaration
TextAlignmentAnchor TextAlignment { get; set; }
Property TextAlignment As TextAlignmentAnchor
Examples
ITextRange textRange = shape.TextFrame.TextRange;
textRange.Text = "Sales Report";
textRange.TextAlignment = TextAlignmentAnchor.Center;
TextAlignmentAnchor alignment = textRange.TextAlignment;