Gets or sets the default time used in the control.
Syntax
Visual Basic (Declaration) | |
---|
Public Overridable Property TimeDefault As Date |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As DateTimeCellType
Dim value As Date
instance.TimeDefault = value
value = instance.TimeDefault |
C# | |
---|
public virtual DateTime TimeDefault {get; set;} |
Property Value
DateTime object containing the default time
Remarks
Example
This example sets the default date for the cell.
C# | Copy Code |
---|
FarPoint.Win.Spread.CellType.DateTimeCellType dt = new FarPoint.Win.Spread.CellType.DateTimeCellType();
dt.DateDefault = System.DateTime.Now;
dt.TimeDefault = System.DateTime.Now;
dt.TwoDigitYearMax = 2000; |
Visual Basic | Copy Code |
---|
FarPoint.Win.Spread.CellType.DateTimeCellType dt = new FarPoint.Win.Spread.CellType.DateTimeCellType();
dt.DateDefault = System.DateTime.Now;
dt.TimeDefault = System.DateTime.Now;
dt.TwoDigitYearMax = 2000; |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also