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


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
Requirements

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

See Also

Reference

DateTimeDisplayFieldCollectionInfo Class
DateTimeDisplayFieldCollectionInfo Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.