Search Results for

    Show / Hide Table of Contents

    TShapeProperties.TextHorizontalAlignment Property

    This property gets or sets the horizontal alignment for the text.

    Note that xls and xlsx files behave differently when text is rotated with TextRotated. In xlsx, if you rotate the text 90 degrees clockwise, a text aligned to the top and left will be aligned to the top and right of the shape. While in xls, the rotation is absolute and always means aligned to the top left of the shape.

    This method uses the xls way, even when dealing with xlsx files. For more information see Text Rotation In Xls And Xlsx

    Syntax

    Namespace: FlexCel.Core

    public THFlxAlignment TextHorizontalAlignment { get; set; }

    See also

    • TShapeProperties
    • TextVerticalAlignment
    • TextRotated
    • Text Rotation In Xls And Xlsx
    In This Article
    Back to top FlexCel Studio for the .NET Framework v7.24.0.0
    © 2002 - 2025 tmssoftware.com