Xceed Workbooks for .NET v3.0 Documentation
Xceed.Workbooks.NET Assembly / Xceed.Workbooks.NET Namespace / HorizontalAlignment Enumeration


In This Topic
    HorizontalAlignment Enumeration
    In This Topic
    Contains the various types of horizontal alignments that can be used in a Cell.
    Syntax
    'Declaration
     
    
    Public Enum HorizontalAlignment 
       Inherits System.Enum
    'Usage
     
    
    Dim instance As HorizontalAlignment
    public enum HorizontalAlignment : System.Enum 
    Members
    MemberValueDescription
    Center2The content will be centered in the middle of the Cell.
    CenterAcrossSelection5The content will be centered within the selection (which is a Cell, by default).
    Distributed7The text will be centered, but will also be aligned with the left and right side of the Cell when possible.
    Fill4The content will be duplicated to fill the Cell’s width.
    General0

    The default alignment.

    Texts will be aligned to the left, Numbers, Dates & Times will be aligned to the right and Boolean values will be centered in the middle of the Cell.

    Justify6The text will be aligned with the left and right sides of the Cell simultaneously, except for the last line, which will be aligned to the left side only.
    Left1The content will be aligned to the left side of the Cell.
    Right3The content will be aligned to the right side of the Cell.
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             Xceed.Workbooks.NET.HorizontalAlignment

    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also