Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

VisioShapeResizeExtensions

OfficeIMO.Visio

Namespace
OfficeIMO.Visio
Assembly
OfficeIMO.Visio
Source revision
7fbbd72e7c5a with working tree changes
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, 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 required
Page owning the shape, including nested shapes.
shape OfficeIMO.Visio.VisioShape required
Shape to resize.
width OfficeIMO.OfficeLength required
Finite positive requested width.
height OfficeIMO.OfficeLength required
Finite positive requested height.

Returns

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