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
Exceptions
Remarks
Example
This example sets the backcolor of the cell.
C# | Copy Code |
---|
FarPoint.Web.Spread.Model.CellRange range = FarPoint.Web.Spread.Model.CellRange.Parse("B2");
FpSpread1.Sheets[0].Cells[range.Row, range.Column].BackColor = Color.Red;
FpSpread1.Sheets[0].Rows.Count = 6;
FarPoint.Web.Spread.Model.CellRange range1 = FarPoint.Web.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.Web.Spread.Model.CellRange
range = FarPoint.Web.Spread.Model.CellRange.Parse("B2")
FpSpread1.Sheets(0).Cells(range.Row, range.Column).BackColor = Color.Red
FpSpread1.Sheets(0).Rows.Count = 6
Dim range1 As FarPoint.Web.Spread.Model.CellRange
range1 = FarPoint.Web.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 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6
See Also