Spread Windows Forms 12.0 Product Documentation
SpreadSerializer Constructor
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > SpreadSerializer Class : SpreadSerializer Constructor
Creates a new instance of the SpreadSerializer class.
Syntax
'Declaration
 
Public Function New()
'Usage
 
Dim instance As New SpreadSerializer()
public SpreadSerializer()
Example
This example checks if a file is a Spread XML file.
FarPoint.Win.Spread.Model.SpreadSerializer s = new FarPoint.Win.Spread.Model.SpreadSerializer();
System.IO.Stream stream;
stream = System.IO.File.Open("D:\\SpreadFiles\\file01.xml", System.IO.FileMode.Open);
bool b = s.IsSpreadXmlFile(stream);
MessageBox.Show("The file is a Spread XML file is " + b.ToString());
Dim s As New FarPoint.Win.Spread.Model.SpreadSerializer
Dim stream As System.IO.Stream
stream = System.IO.File.Open("D:\SpreadFiles\file01.xml", System.IO.FileMode.Open)
Dim b As Boolean = s.IsSpreadXmlFile(stream)
MessageBox.Show("The file is a Spread XML file is " & b.ToString)
See Also

Reference

SpreadSerializer Class
SpreadSerializer Members