'宣言 Public Overloads Function Add( _ ByVal shapeType As PredefinedShapeType, _ ByVal topLeftCornerCell As WorksheetCell, _ ByVal topLeftCornerPosition As PointF, _ ByVal bottomRightCornerCell As WorksheetCell, _ ByVal bottomRightCornerPosition As PointF _ ) As WorksheetShape
例外 | 解説 |
---|---|
System.ComponentModel.InvalidEnumArgumentException | shapeType が PredefinedShapeType 列挙体で定義されていないです。 |
System.InvalidOperationException | topLeftCornerCell または bottomRightCornerCell は null です。 |
System.InvalidOperationException | topLeftCornerCell および bottomRightCornerCell は、異なるワークシートか、このコレクションが属するワークシートとは別のワークシートに属しています。 |