Spread Windows Forms 12.0 Product Documentation
TextAlign Property (MultiOptionCellType)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > MultiOptionCellType Class : TextAlign Property
Gets or sets how text aligns in the cell.
Syntax
'Declaration
 
Public Property TextAlign As ButtonTextAlign
'Usage
 
Dim instance As MultiOptionCellType
Dim value As ButtonTextAlign
 
instance.TextAlign = value
 
value = instance.TextAlign
public ButtonTextAlign TextAlign {get; set;}

Property Value

ButtonTextAlign setting that determines how the text is aligned
Example
This example specifies the picture to use for the multiple option buttons.
FarPoint.Win.Spread.CellType.MultiOptionCellType multcell = new FarPoint.Win.Spread.CellType.MultiOptionCellType();
multcell.BackgroundImage = new FarPoint.Win.Picture(Image.FromFile("..\\images\\awbool.bmp"));
multcell.Items = new String[] {"One", "Two", "Three"};
multcell.Orientation = FarPoint.Win.RadioOrientation.Horizontal;
multcell.Picture.True = Image.FromFile("..\\images\\checked.gif");
multcell.Picture.False = Image.FromFile("..\\images\\unchecked.gif");
multcell.TextAlign = FarPoint.Win.ButtonTextAlign.TextRightPictLeft;
multcell.UseMnemonic = true;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = multcell;
Dim multcell As New FarPoint.Win.Spread.CellType.MultiOptionCellType()
multcell.BackgroundImage = New FarPoint.Win.Picture(Image.FromFile("..\images\awbool.bmp"))
multcell.Items = New String() {"One", "Two", "Three"}
multcell.Orientation = FarPoint.Win.RadioOrientation.Horizontal
multcell.Picture.True = Image.FromFile("..\images\checked.gif")
multcell.Picture.False = Image.FromFile("..\images\unchecked.gif")
multcell.TextAlign = FarPoint.Win.ButtonTextAlign.TextRightPictLeft
multcell.UseMnemonic = True
FpSpread1.ActiveSheet.Cells(0, 0).CellType = multcell
See Also

Reference

MultiOptionCellType Class
MultiOptionCellType Members