Spread ASP.NET 6.0 Product Documentation
Items Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > ComboBoxCellType Class : Items Property


Glossary Item Box

Gets or sets a string array of items for the combo box list.

Syntax

Visual Basic (Declaration) 
Public Overridable Property Items As String()
Visual Basic (Usage)Copy Code
Dim instance As ComboBoxCellType
Dim value() As String
 
instance.Items = value
 
value = instance.Items
C# 
public virtual string[] Items {get; set;}

Property Value

String array containing items for the list

Remarks

This property is available at run time only.

Example

This example creates a ComboBoxCellType object and makes all the cells in the first column combo boxes. It returns the EditorClientScriptUrl to a text box.
C#Copy Code
string[]cbstr;
string[]strval;
cbstr=newString[]{"One","Two","Three"};
strval=newString[]{"1","2","3"};
FarPoint.Web.Spread.ComboBoxCellTypecb=newFarPoint.Web.Spread.ComboBoxCellType();
cb.Items=cbstr;
FpSpread1.ActiveSheetView.Columns[0].CellType=cb;
FpSpread1.ActiveSheetView.DataModel.SetValue(0,0,1);
TextBox1.Text=cb.EditorClientScriptUrl;
Visual BasicCopy Code
DimcbstrAsString()
cbstr=NewString(){"One","Two","Three"}
DimstrvalAsString()
strval=NewString(){"1","2","3"}
DimcbAsNewFarPoint.Web.Spread.ComboBoxCellType()
cb.Items=cbstr
FpSpread1.ActiveSheetView.Columns(0).CellType=cb
FpSpread1.ActiveSheetView.DataModel.SetValue(0,0,1)
TextBox1.Text=cb.EditorClientScriptUrl

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.