| Visual Basic (Declaration) | |
|---|---|
Public Enum DisplayAlignment Inherits System.Enum  | |
| Visual Basic (Usage) |  Copy Code | 
|---|---|
Dim instance As DisplayAlignment  | |
| C# | |
|---|---|
public enum DisplayAlignment : System.Enum  | |
| Member | Description | 
|---|---|
| Distributed | Specifies that the alignment is distributed. | 
| DistributedWithWhiteSpace | Specifies that the alignment is distributed with white space. | 
| None | Specifies to never make a horizontal alignment effect. | 
This example uses the DisplayAlignment enumeration.
             
            
            | C# |  Copy Code | 
|---|---|
GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType inputcell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType(); inputcell1.AcceptsArrowKeys = FarPoint.Win.SuperEdit.AcceptsArrowKeys.AllArrows; inputcell1.DisplayAlignment = GrapeCity.Win.Spread.InputMan.CellType.DisplayAlignment.Distributed; AutoCompleteStringCollection acsc = new AutoCompleteStringCollection(); acsc.AddRange(new string[] { "One", "Two", "Three", "Four" }); inputcell1.AutoCompleteCustomSource = acsc; inputcell1.AutoCompleteMode = AutoCompleteMode.Suggest; inputcell1.AutoCompleteSource = AutoCompleteSource.CustomSource; fpSpread1.Sheets[0].Cells[1, 1].CellType = inputcell1;  | |
| VB.NET |  Copy Code | 
|---|---|
Dim inputcell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType inputcell1.AcceptsArrowKeys = FarPoint.Win.SuperEdit.AcceptsArrowKeys.AllArrows inputcell1.DisplayAlignment = GrapeCity.Win.Spread.InputMan.CellType.DisplayAlignment.Distributed Dim acsc As New AutoCompleteStringCollection acsc.AddRange(New String() {"One", "Two", "Three", "Four"}) inputcell1.AutoCompleteCustomSource = acsc inputcell1.AutoCompleteMode = AutoCompleteMode.Suggest inputcell1.AutoCompleteSource = AutoCompleteSource.CustomSource FpSpread1.Sheets(0).Cells(1, 1).CellType = inputcell1  | |
System.Object
   System.ValueType
      System.Enum
         GrapeCity.Win.Spread.InputMan.CellType.DisplayAlignment
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8