# VisioShapeResizeExtensions

Explicit resizing of an existing shape and its editable child tree.

Class 

`OfficeIMO.Visio`

**Namespace**

`OfficeIMO.Visio`

**Assembly**

`OfficeIMO.Visio`

**Source revision**

`7fbbd72e7c5a` with working tree changes

**Source**

[VisioShapeResizeExtensions.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Visio/Editing/VisioShapeResizeExtensions.cs#L22)

**Modifiers**

static

Explicit resizing of an existing shape and its editable child tree.

## Inheritance

- object
- VisioShapeResizeExtensions

Filter members 

Show inherited

## Methods

`public static VisioShape ResizeShape(VisioPage page, VisioShape shape, OfficeLength width, OfficeLength height)` [#](#method-resizeshape-officeimo-visio-visiopage-officeimo-visio-visioshape-officeimo-officelength-officeimo-officelength)

[VisioShapeResizeExtensions.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Visio/Editing/VisioShapeResizeExtensions.cs#L22)

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.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:6C1B8CEFCF2F63945C4CE13CC7B83E2726FD239F13F67612885AF7EB99C43BA4 -->
