Spread Windows Forms 11.0 Product Documentation
AddRange(String) Method
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > DateTimeDisplayFieldCollectionInfo Class > AddRange Method : AddRange(String) Method
A string value that indicates the specified format string.
Adds the contents to the end of the collection, which is built from a specified format string.
Syntax
'Declaration
 
Public Overloads Sub AddRange( _
   ByVal format As String _
) 
'Usage
 
Dim instance As DateTimeDisplayFieldCollectionInfo
Dim format As String
 
instance.AddRange(format)
public void AddRange( 
   string format
)

Parameters

format
A string value that indicates the specified format string.
Example
This example uses the AddRange method.
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType ct = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
ct.Fields.Clear();
ct.Fields.AddRange("yyyy/MM/dd");
fpSpread1.Sheets[0].Cells[0, 0].CellType = ct;
Dim ct As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
ct.Fields.Clear()
ct.Fields.AddRange("yyyy/MM/dd")
fpSpread1.Sheets(0).Cells(0, 0).CellType = ct
See Also

Reference

DateTimeDisplayFieldCollectionInfo Class
DateTimeDisplayFieldCollectionInfo Members
Overload List