| Visual Basic (Declaration) | |
|---|---|
Public Property TopLeftCornerCell As WorksheetCell | |
| C# | |
|---|---|
public WorksheetCell TopLeftCornerCell {get; set;} | |
Property Value
The cell where the top-left corner of the shape resides.| Exception | Description |
|---|---|
| The value assigned is a cell whose worksheet is not the same as this shape's worksheet. | |
| The value assigned is null and this shape already exists on a worksheet or group. |
This anchor cell, along with the WorksheetShape.BottomRightCornerCell, determines where the shape will be positioned on the worksheet. In addition, the BottomRightCornerPosition and TopLeftCornerPosition properties allow for finer control of the shape's position.