Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

VisioShapeResizeExtensions

Namespace OfficeIMO.Visio
Assembly OfficeIMO.Visio
Modifiers static

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: VisioShape

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 requiredposition: 0
Page owning the shape, including nested shapes.
shape OfficeIMO.Visio.VisioShape requiredposition: 1
Shape to resize.
width System.Double requiredposition: 2
Finite positive requested width.
height System.Double requiredposition: 3
Finite positive requested height.
unit System.Nullable{OfficeIMO.Visio.VisioMeasurementUnit} = null optionalposition: 4
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.