Version

SetBoundsInTwips(Sheet,Rect) Method

Sets the bounds of the shape in twips (1/20th of a point).
Syntax
'Declaration
 
Public Overloads Sub SetBoundsInTwips( _
   ByVal sheet As Sheet, _
   ByVal bounds As Rect _
) 
public void SetBoundsInTwips( 
   Sheet sheet,
   Rect bounds
)

Parameters

sheet
The worksheet on which the shape should be placed.
bounds
The new bounds where the shape should be placed.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionsheet is null.
Remarks

The shape will only be positioned at the specified bounds while the worksheet remains in the current configuration. Depending on the PositioningMode of the shape, it may change bounds if any rows or columns before or within the shape are resized.

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