Version

TopLeftCornerCell Property

Gets or sets the cell where the top-left corner of the shape resides.
Syntax
'Declaration
 
Public Property TopLeftCornerCell As WorksheetCell
public WorksheetCell TopLeftCornerCell {get; set;}

Property Value

The cell where the top-left corner of the shape resides.
Exceptions
ExceptionDescription
System.ArgumentException The value assigned is a cell whose worksheet is not the same as this shape's worksheet.
System.ArgumentNullException The value assigned is null and this shape already exists on a worksheet or group.
Remarks

This anchor cell, along with the 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.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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