Spread Windows Forms 9.0 Product Documentation
Count Property (ExcelWarningList)
Example 


Gets the number of warnings in the list of Excel file operation warnings.
Syntax
'Declaration
 
Public ReadOnly Property Count As Integer
'Usage
 
Dim instance As ExcelWarningList
Dim value As Integer
 
value = instance.Count
public int Count {get;}

Property Value

Integer number of warnings in the list
Example
This example gets the warning list.
FarPoint.Excel.ExcelWarningList warningList = new FarPoint.Excel.ExcelWarningList();
            fpSpread1.OpenExcel("c:\\test.xlsx", FarPoint.Excel.ExcelOpenFlags.NoFlagsSet, warningList);
            if (warningList.Count > 0)
                for (int i = 0; i < warningList.Count; i++)
                    MessageBox.Show(warningList[i].Message);
Dim warningList As New FarPoint.Excel.ExcelWarningList()
        FpSpread1.OpenExcel("c:\test.xlsx", FarPoint.Excel.ExcelOpenFlags.NoFlagsSet, warningList)
        If warningList.Count > 0 Then
            For i As Integer = 0 To warningList.Count - 1
                MessageBox.Show(warningList(i).Message)
            Next
        End If
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

ExcelWarningList Class
ExcelWarningList Members

 

 


Copyright © GrapeCity, inc. All rights reserved.