Spread WinRT Documentation
GrapeCity.Xaml.SpreadSheet.Data Namespace / CellHorizontalAlignment Enumeration
Example Example


In This Topic
    CellHorizontalAlignment Enumeration
    In This Topic
    Specifies the horizontal alignment of the cell.
    Syntax
    'Declaration
     
    Public Enum CellHorizontalAlignment 
       Inherits System.Enum
    'Usage
     
    Dim instance As CellHorizontalAlignment
    public enum CellHorizontalAlignment : System.Enum 
    Members
    MemberDescription
    CenterIndicates that the cell content starts from the center in the horizontal alignment.
    GeneralIndicates that the horizontal alignment is based on the value type.
    LeftIndicates that the cell content starts from the left in the horizontal alignment.
    RightIndicates that the cell content starts from the right in the horizontal alignment.
    Example
    This example uses the CellHorizontalAlignment enumeration.
    gcSpreadSheet1.CanCellOverflow = true;
    gcSpreadSheet1.Sheets[0].Cells[1, 2].HorizontalAlignment = GrapeCity.Xaml.SpreadSheet.Data.CellHorizontalAlignment.Right;
    gcSpreadSheet1.Sheets[0].Cells[2, 2].HorizontalAlignment = GrapeCity.Xaml.SpreadSheet.Data.CellHorizontalAlignment.Center;
    gcSpreadSheet1.Sheets[0].Cells[3, 2].HorizontalAlignment = GrapeCity.Xaml.SpreadSheet.Data.CellHorizontalAlignment.Left;
    GcSpreadSheet1.CanCellOverflow = True
    GcSpreadSheet1.Sheets(0).Cells(1, 2).HorizontalAlignment = GrapeCity.Xaml.SpreadSheet.Data.CellHorizontalAlignment.Right
    GcSpreadSheet1.Sheets(0).Cells(2, 2).HorizontalAlignment = GrapeCity.Xaml.SpreadSheet.Data.CellHorizontalAlignment.Center
    GcSpreadSheet1.Sheets(0).Cells(3, 2).HorizontalAlignment = GrapeCity.Xaml.SpreadSheet.Data.CellHorizontalAlignment.Left
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             GrapeCity.Xaml.SpreadSheet.Data.CellHorizontalAlignment

    See Also