FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread.Model 名前空間 > SpreadSerializer クラス > IsSpreadXmlFile メソッド : IsSpreadXmlFile(String) メソッド |
'Declaration Public Overloads Shared Function IsSpreadXmlFile( _ ByVal fileName As String _ ) As Boolean
'使用法 Dim fileName As String Dim value As Boolean value = SpreadSerializer.IsSpreadXmlFile(fileName)
このメソッドは、ソースが本当に Spread データを含む XML ファイルかどうかを確かめる場合に使用します。
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)