Cell Property
The selected cell or range in A1 notation.
Syntax
[VB.NET] Public Property Cell As String
[C#] public string Cell {get; set;}
Remarks
This property specifies the selected cell or range in A1 notation.
The following table shows common A1-style examples.
Cell | Meaning |
A1 | Cell A1 |
A1:B5 | Cell A1 through B5 |
A:A | Column A |
1:1 | Row 1 |
A:C | Columns A through C |
1:5 | Rows 1 through 5 |
After selecting a cell the following properties are populated.
When selecting a range the CellStyle and CellType properties may be set and will apply to all cells in the specified range.
This property is not available at design time.
Default Value
"A1"