Class
VisioShapeResizeExtensions
OfficeIMO.Visio
Explicit resizing of an existing shape and its editable child tree.
Inheritance
- object
- VisioShapeResizeExtensions
Methods
public static VisioShape ResizeShape(VisioPage page, VisioShape shape, OfficeLength width, OfficeLength height) #Resizes 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 OfficeIMO.OfficeLength
- Finite positive requested width.
- height OfficeIMO.OfficeLength
- Finite positive requested height.
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.