Converts a string to a cell range.
Syntax
Visual Basic (Declaration) | |
---|
Public Shared Function Parse( _
ByVal s As String _
) As CellRange |
Parameters
- s
- String to be parsed
Return Value
CellRange object containing the cell range represented by the string
Exceptions
Remarks
Example
This example sets the background color of the cell and cell range.
C# | Copy Code |
---|
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;
|
Visual Basic | Copy Code |
---|
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
|
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also