Spread Windows Forms 12.0 Product Documentation
DisplayAlignment Enumeration
Example Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace : DisplayAlignment Enumeration
Defines the DisplayAlignment enumeration.
Syntax
'Declaration
 
Public Enum DisplayAlignment 
   Inherits System.Enum
'Usage
 
Dim instance As DisplayAlignment
public enum DisplayAlignment : System.Enum 
Members
MemberDescription
DistributedSpecifies that the alignment is distributed.
DistributedWithWhiteSpaceSpecifies that the alignment is distributed with white space.
NoneSpecifies to never make a horizontal alignment effect.
Example
This example uses the DisplayAlignment enumeration.
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;
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
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         GrapeCity.Win.Spread.InputMan.CellType.DisplayAlignment

See Also

Reference

GrapeCity.Win.Spread.InputMan.CellType Namespace