Spread Windows Forms 10.0 Product Documentation
Items Property (MultiOptionCellType)
Example 


Gets or sets the list for the option buttons.
Syntax
'Declaration
 
Public Property Items As String()
'Usage
 
Dim instance As MultiOptionCellType
Dim value() As String
 
instance.Items = value
 
value = instance.Items
public string[] Items {get; set;}

Property Value

String array of items
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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

MultiOptionCellType Class
MultiOptionCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.