FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread.Model 名前空間 > CellRange クラス : Parse メソッド |
例外 | 説明 |
---|---|
System.ArgumentNullException | sがNull参照(Visual BasicではNothing)です。 |
System.FormatException | sがセル範囲を表していません。 |
FarPoint.Win.Spread.Model.CellRange range = FarPoint.Win.Spread.Model.CellRange.Parse("B2"); fpSpread1.Sheets[0].Cells[range.Row, range.Column].BackColor = Color.Red; FarPoint.Win.Spread.Model.CellRange range1 = FarPoint.Win.Spread.Model.CellRange.Parse("B4:C6"); fpSpread1.Sheets[0].Cells[range1.Row, range1.Column, range1.Row + range1.RowCount - 1, range1.Column + range1.ColumnCount - 1].BackColor = Color.Blue;
Dim range As FarPoint.Win.Spread.Model.CellRange range = FarPoint.Win.Spread.Model.CellRange.Parse("B2") FpSpread1.Sheets(0).Cells(range.Row, range.Column).BackColor = Color.Red Dim range1 As FarPoint.Win.Spread.Model.CellRange range1 = FarPoint.Win.Spread.Model.CellRange.Parse("B4:C6") FpSpread1.Sheets(0).Cells(range1.Row, range1.Column, range1.Row + range1.RowCount - 1, range1.Column + range1.ColumnCount - 1).BackColor = Color.Blue