API Reference
Class
VisioShapeResizeExtensions
Explicit resizing of an existing shape and its editable child tree.
Inheritance
- Object
- VisioShapeResizeExtensions
Methods
public static VisioShape ResizeShape(VisioPage page, VisioShape shape, Double width, Double height, Nullable<VisioMeasurementUnit> unit = null) #Returns:
VisioShapeResizes a page-owned shape in its local axes while preserving its pin, rotation, identities, text, formatting and master links. Child frames, supported geometry, image placement and connection points follow the resize.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page owning the shape, including nested shapes.
- shape OfficeIMO.Visio.VisioShape
- Shape to resize.
- width System.Double
- Finite positive requested width.
- height System.Double
- Finite positive requested height.
- unit System.Nullable{OfficeIMO.Visio.VisioMeasurementUnit} = null
- Size unit, or the page's default unit when omitted.
Returns
The same shape instance.
Exceptions
NotSupportedException– The original frame is invalid, or native geometry or unequal scaling of a rotated child/text frame cannot be represented by this resize profile.