Gets or sets the format string used to format the value.
Syntax
Visual Basic (Declaration) | |
---|
Public Overridable Property FormatString As String |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As GeneralCellType
Dim value As String
instance.FormatString = value
value = instance.FormatString |
C# | |
---|
public virtual string FormatString {get; set;} |
Property Value
String containing the format
Remarks
Example
This example specifies the format string used to format the date value.
C# | Copy Code |
---|
FarPoint.Win.Spread.CellType.GeneralCellType genlcell = new FarPoint.Win.Spread.CellType.GeneralCellType();
genlcell.FormatString = "dd/MM/yyyy";
genlcell.IsDateFormat = true;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = genlcell;
fpSpread1.ActiveSheet.Cells[0, 0].Value = DateTime.Now; |
Visual Basic | Copy Code |
---|
Dim genlcell As New FarPoint.Win.Spread.CellType.GeneralCellType()
genlcell.FormatString = "dd/MM/yyyy"
genlcell.IsDateFormat = True
FpSpread1.ActiveSheet.Cells(0, 0).CellType = genlcell
FpSpread1.ActiveSheet.Cells(0, 0).Value = DateTime.Now |
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