Spread Windows Forms 7.0 Product Documentation
AddRange(String) Method
See Also  Example Support Options
GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > DateTimeDisplayFieldCollectionInfo Class > AddRange Method : AddRange(String) Method


format
A string value that indicates the specified format string.

Glossary Item Box

Adds the contents to the end of the collection, which is built from a specified format string.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub AddRange( _
   ByVal format As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As DateTimeDisplayFieldCollectionInfo
Dim format As String
 
instance.AddRange(format)
C# 
public void AddRange( 
   string format
)

Parameters

format
A string value that indicates the specified format string.

Example

This example uses the AddRange method.
C#Copy Code
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;
VB.NETCopy Code
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

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.