Spread Windows Forms 12.0 Product Documentation
HeaderFormat Property (DropDownCalendar)
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > DropDownCalendar Class : HeaderFormat Property
Gets or sets the format string of the header.
Syntax
'Declaration
 
Public Property HeaderFormat As String
'Usage
 
Dim instance As DropDownCalendar
Dim value As String
 
instance.HeaderFormat = value
 
value = instance.HeaderFormat
public string HeaderFormat {get; set;}

Property Value

A System.String value that indicates the format of the header.
The default is MMMM yyy.
Remarks
The header text is displayed using the format specified by this property when the UseHeaderFormat property is true.
Example
This example uses the HeaderFormat property.
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType inputcell = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
inputcell.DropDownCalendar.HeaderFormat = "MM yy";
inputcell.DropDownCalendar.UseHeaderFormat = true;
inputcell.DropDownCalendar.HeaderHeight = 40;
fpSpread1.Sheets[0].Cells[0, 0].CellType = inputcell;
Dim inputcell As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
inputcell.DropDownCalendar.HeaderFormat = "MM yy"
inputcell.DropDownCalendar.UseHeaderFormat = True
inputcell.DropDownCalendar.HeaderHeight = 40
fpSpread1.Sheets(0).Cells(0, 0).CellType = inputcell
See Also

Reference

DropDownCalendar Class
DropDownCalendar Members