Spread Windows Forms 9.0 Product Documentation
IsSpreadXmlFile(String) Method
Example 


Path and file name to consider as a source of Spread XML
Determines whether the specified file contains a top-level Spread XML node.
Syntax
'Declaration
 
Public Overloads Shared Function IsSpreadXmlFile( _
   ByVal fileName As String _
) As Boolean
'Usage
 
Dim fileName As String
Dim value As Boolean
 
value = SpreadSerializer.IsSpreadXmlFile(fileName)
public static bool IsSpreadXmlFile( 
   string fileName
)

Parameters

fileName
Path and file name to consider as a source of Spread XML

Return Value

True if the specified XML file contains a top-level Spread XML node; false otherwise
Remarks

Use this method to consider whether the source is indeed an XML file with Spread data.

Example
This example checks if a file is a Spread XML file.
FarPoint.Win.Spread.Model.SpreadSerializer s = new FarPoint.Win.Spread.Model.SpreadSerializer();
bool b = s.IsSpreadXmlFile("D:\\SpreadFiles\\file01.xml");
MessageBox.Show("The file is a Spread XML file is " + b.ToString());
Dim s As New FarPoint.Win.Spread.Model.SpreadSerializer
Dim b As Boolean = s.IsSpreadXmlFile("D:\SpreadFiles\file01.xml")
MessageBox.Show("The file is a Spread XML file is " & b.ToString)
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SpreadSerializer Class
SpreadSerializer Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.