Spread Windows Forms 7.0 Product Documentation
ParseFormatInfo Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > Cell Class : ParseFormatInfo Property


Glossary Item Box

Gets or sets the parsed formatting for the cell.

Syntax

Visual Basic (Declaration) 
Public Property ParseFormatInfo As IFormatProvider
Visual Basic (Usage)Copy Code
Dim instance As Cell
Dim value As IFormatProvider
 
instance.ParseFormatInfo = value
 
value = instance.ParseFormatInfo
C# 
public IFormatProvider ParseFormatInfo {get; set;}

Property Value

IFormatProvider object containing the way to control formatting

Remarks

This property is only for use with cells of type GeneralCellType.

Example

This example shows how to parse cell data.
C#Copy Code
FarPoint.Win.Spread.CellType.GeneralCellType gct = new FarPoint.Win.Spread.CellType.GeneralCellType();
gct.DateTimeFormat = FarPoint.Win.Spread.CellType.DateTimeFormat.LongDate;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = gct;
System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo("en-us", true);
fpSpread1.ActiveSheet.Cells[0, 0].Value = System.DateTime.Now;
fpSpread1.ActiveSheet.Cells[0, 0].ParseFormatInfo = ci;
Visual BasicCopy Code
Dim gct As New FarPoint.Win.Spread.CellType.GeneralCellType
gct.DateTimeFormat = FarPoint.Win.Spread.CellType.DateTimeFormat.LongDate
FpSpread1.ActiveSheet.Cells(0, 0).CellType = gct
Dim ci As New System.Globalization.CultureInfo("en-us", True)
FpSpread1.ActiveSheet.Cells(0, 0).Value = Now
FpSpread1.ActiveSheet.Cells(0, 0).ParseFormatInfo = ci

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.