GrapeCity.Xaml.SpreadSheet.Data
CellHorizontalAlignment Enumeration
Example Example 


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
Center Indicates that the cell content starts from the center in the horizontal alignment.
General Indicates that the horizontal alignment is based on the value type.
Left Indicates that the cell content starts from the left in the horizontal alignment.
Right Indicates 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

Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

GrapeCity.Xaml.SpreadSheet.Data Namespace

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options