Spread Windows Forms 12.0 Product Documentation
ButtonAlign Property (ComboBoxCellType)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ComboBoxCellType Class : ButtonAlign Property
Gets or sets where buttons are displayed.
Syntax
'Declaration
 
Public Property ButtonAlign As ButtonAlign
'Usage
 
Dim instance As ComboBoxCellType
Dim value As ButtonAlign
 
instance.ButtonAlign = value
 
value = instance.ButtonAlign
public ButtonAlign ButtonAlign {get; set;}

Property Value

ButtonAlign setting that determines the alignment
Example
This example sets the text in the editable portion of the cell to all caps and aligns the button to the right.
FarPoint.Win.Spread.CellType.ComboBoxCellType cb = new FarPoint.Win.Spread.CellType.ComboBoxCellType(); 
cb.Items = new string[]{"One", "Two", "Three", "Four"}; 
cb.CharacterCasing = CharacterCasing.Upper; 
cb.CharacterSet = FarPoint.Win.ComboCharacterSet.Ascii; 
cb.ButtonAlign = FarPoint.Win.ButtonAlign.Right; 
cb.Editable = true;
Dim cb As New FarPoint.Win.Spread.CellType.ComboBoxCellType
cb.Items = New String() {"One", "Two", "Three", "Four"}
cb.CharacterCasing = CharacterCasing.Upper
cb.CharacterSet = FarPoint.Win.ComboCharacterSet.Ascii
cb.ButtonAlign = FarPoint.Win.ButtonAlign.Right
cb.Editable = True
See Also

Reference

ComboBoxCellType Class
ComboBoxCellType Members

User-Task Documentation

Setting a Combo Box Cell