'宣言 Public Overloads Function AddChart( _ ByVal chartType As ChartType, _ ByVal topLeftCornerCell As WorksheetCell, _ ByVal topLeftCornerPosition As PointF, _ ByVal bottomRightCornerCell As WorksheetCell, _ ByVal bottomRightCornerPosition As PointF, _ Optional ByVal chartInitializer As Action(Of WorksheetChart) _ ) As WorksheetChart
例外 | 解説 |
---|---|
System.ComponentModel.InvalidEnumArgumentException | chartType が Infragistics.Documents.Excel.Charts.ChartType 列挙体で定義されていません。 |
System.InvalidOperationException | topLeftCornerCell または bottomRightCornerCell は null です。 |
System.InvalidOperationException | topLeftCornerCell および bottomRightCornerCell は、異なるワークシートか、このコレクションが属するワークシートとは別のワークシートに属しています。 |
System.InvalidOperationException | 他のチャートの Shapes コレクションに追加されているチャートが null の場合。 |
System.InvalidOperationException | Workbook.CurrentFormat がチャート変更をサポートしない場合。たとえば、'Excel97To2003' または 'Excel97To2003Template'。 |