Visual Basic (Declaration) | |
---|---|
Public Function New() |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As New SpreadSerializer() |
C# | |
---|---|
public SpreadSerializer() |
This example checks if a file is a Spread XML file.
C# | Copy Code |
---|---|
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()); |
Visual Basic | Copy Code |
---|---|
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) |
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