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
    MemberDescription
    CenterThe content will be centered in the middle of the Cell.
    CenterAcrossSelectionThe content will be centered within the selection (which is a Cell, by default).
    DistributedThe text will be centered, but will also be aligned with the left and right side of the Cell when possible.
    FillThe content will be duplicated to fill the Cell’s width.
    General

    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.

    JustifyThe 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.
    LeftThe content will be aligned to the left side of the Cell.
    RightThe content will be aligned to the right side of the Cell.
    Inheritance Hierarchy

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

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also