Version

GetBoundsInTwips() Method

Gets the bounds of the shape in twips (1/20th of a point).
Syntax
public virtual Rect GetBoundsInTwips()

Return Value

The bounds of the shape on its worksheet.
Exceptions
ExceptionDescription
System.InvalidOperationExceptionThe TopLeftCornerCell or BottomRightCornerCell are null, in which case the shape has no bounds.
Remarks

The bounds returned by this method are only valid with the current configuration of the worksheet. If any rows or columns before or within the shape are resized, these bounds will no longer reflect the position of the shape.

Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also