# VisioShapeBounds

Physical bounds of one or more Visio shapes in page coordinates.

Struct 

`OfficeIMO.Visio`

**Namespace**

`OfficeIMO.Visio`

**Assembly**

`OfficeIMO.Visio`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[VisioShapeBounds.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Layout/VisioShapeBounds.cs#L23)

**Base**

`ValueType`

**Implements**

`IEquatable<VisioShapeBounds>`

**Modifiers**

sealed

Physical bounds of one or more Visio shapes in page coordinates.

## Inheritance

- ValueType
- VisioShapeBounds

## Usage

Explore 25 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 14

- Extension method [VisioConnector.GetConnectorContentBounds](/api/visio/officeimo-visio-visioconnector/#extension-getconnectorcontentbounds-officeimo-visio-visioconnector)
- Extension method [VisioConnector.GetLabelBounds](/api/visio/officeimo-visio-visioconnector/#extension-getlabelbounds-officeimo-visio-visioconnector)
- Method [VisioLayoutExtensions.GetConnectorContentBounds](/api/visio/officeimo-visio-visiolayoutextensions/#method-getconnectorcontentbounds-officeimo-visio-visioconnector)
- Method [VisioLayoutExtensions.GetContentBounds](/api/visio/officeimo-visio-visiolayoutextensions/#method-getcontentbounds-officeimo-visio-visiopage-boolean-boolean)
- Method [VisioLayoutExtensions.GetLabelBounds](/api/visio/officeimo-visio-visiolayoutextensions/#method-getlabelbounds-officeimo-visio-visioconnector)
- Method [VisioLayoutExtensions.GetPageShapeBounds](/api/visio/officeimo-visio-visiolayoutextensions/#method-getpageshapebounds-officeimo-visio-visioshape)
- Method [VisioLayoutExtensions.GetShapeBounds](/api/visio/officeimo-visio-visiolayoutextensions/#method-getshapebounds-officeimo-visio-visioshape)
- Extension method [VisioPage.GetContentBounds](/api/visio/officeimo-visio-visiopage/#extension-getcontentbounds-officeimo-visio-visiopage-boolean-boolean)
- Extension method [VisioShape.GetPageShapeBounds](/api/visio/officeimo-visio-visioshape/#extension-getpageshapebounds-officeimo-visio-visioshape)
- Extension method [VisioShape.GetShapeBounds](/api/visio/officeimo-visio-visioshape/#extension-getshapebounds-officeimo-visio-visioshape)
- Property [VisioShapeBounds.Empty](/api/visio/officeimo-visio-visioshapebounds/#property-empty)
- Extension method [VisioShapeSelection.GetShapeBounds](/api/visio/officeimo-visio-visioshapeselection/#extension-getshapebounds-officeimo-visio-visioshapeselection)
- Property [VisioSwimlaneLane.Bounds](/api/visio/officeimo-visio-visioswimlanelane/#property-bounds)
- Property [VisioSwimlanePhase.Bounds](/api/visio/officeimo-visio-visioswimlanephase/#property-bounds)

### Accepted by parameters 11

- Extension method [VisioPage.SelectContainedIn](/api/visio/officeimo-visio-visiopage/#extension-selectcontainedin-officeimo-visio-visiopage-officeimo-visio-visioshapebounds) parameter `bounds`
- Extension method [VisioPage.SelectIntersecting](/api/visio/officeimo-visio-visiopage/#extension-selectintersecting-officeimo-visio-visiopage-officeimo-visio-visioshapebounds) parameter `bounds`
- Extension method [VisioPage.ShapesContainedIn](/api/visio/officeimo-visio-visiopage/#extension-shapescontainedin-officeimo-visio-visiopage-officeimo-visio-visioshapebounds) parameter `bounds`
- Extension method [VisioPage.ShapesIntersecting](/api/visio/officeimo-visio-visiopage/#extension-shapesintersecting-officeimo-visio-visiopage-officeimo-visio-visioshapebounds) parameter `bounds`
- Method [VisioPage.ShapesContainedIn](/api/visio/officeimo-visio-visiopage/#method-shapescontainedin-officeimo-visio-visioshapebounds-action-officeimo-visio-visioshapeselection) parameter `bounds`
- Method [VisioPage.ShapesIntersecting](/api/visio/officeimo-visio-visiopage/#method-shapesintersecting-officeimo-visio-visioshapebounds-action-officeimo-visio-visioshapeselection) parameter `bounds`
- Method [VisioPageQueryExtensions.SelectContainedIn](/api/visio/officeimo-visio-visiopagequeryextensions/#method-selectcontainedin-officeimo-visio-visiopage-officeimo-visio-visioshapebounds) parameter `bounds`
- Method [VisioPageQueryExtensions.SelectIntersecting](/api/visio/officeimo-visio-visiopagequeryextensions/#method-selectintersecting-officeimo-visio-visiopage-officeimo-visio-visioshapebounds) parameter `bounds`
- Method [VisioPageQueryExtensions.ShapesContainedIn](/api/visio/officeimo-visio-visiopagequeryextensions/#method-shapescontainedin-officeimo-visio-visiopage-officeimo-visio-visioshapebounds) parameter `bounds`
- Method [VisioPageQueryExtensions.ShapesIntersecting](/api/visio/officeimo-visio-visiopagequeryextensions/#method-shapesintersecting-officeimo-visio-visiopage-officeimo-visio-visioshapebounds) parameter `bounds`
- Method [VisioShapeBounds.Equals](/api/visio/officeimo-visio-visioshapebounds/#method-equals-officeimo-visio-visioshapebounds) parameter `other`

Filter members 

Show inherited

## Constructors

`public VisioShapeBounds(OfficeLength left, OfficeLength bottom, OfficeLength right, OfficeLength top)` [#](#constructor-ctor-officeimo-officelength-officeimo-officelength-officeimo-officelength-officeimo-officelength)

[VisioShapeBounds.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Layout/VisioShapeBounds.cs#L23)

Initializes bounds from physical page coordinates.

Parameters

**left OfficeIMO.OfficeLength required**

**bottom OfficeIMO.OfficeLength required**

**right OfficeIMO.OfficeLength required**

**top OfficeIMO.OfficeLength required**

## Methods

Equals 2 overloads

`public bool Equals(VisioShapeBounds other)` [#](#method-equals-officeimo-visio-visioshapebounds)

[VisioShapeBounds.cs:89](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Layout/VisioShapeBounds.cs#L89)

Indicates whether the current object is equal to another object of the same type.

Parameters

**other OfficeIMO.Visio.VisioShapeBounds required**

An object to compare with this object.

Returns

`bool` true if the current object is equal to the other parameter; otherwise, false.

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

[VisioShapeBounds.cs:98](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Layout/VisioShapeBounds.cs#L98)

Indicates whether this instance and a specified object are equal.

Parameters

**obj object? required**

The object to compare with the current instance.

Returns

`bool` true if obj and this instance are the same type and represent the same value; otherwise, false.

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

[VisioShapeBounds.cs:104](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Layout/VisioShapeBounds.cs#L104)

Returns the hash code for this instance.

Returns

`int` A 32-bit signed integer that is the hash code for this instance.

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

[VisioShapeBounds.cs:116](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Layout/VisioShapeBounds.cs#L116)

Returns the fully qualified type name of this instance.

Returns

`string` The fully qualified type name.

## Inherited Methods

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

Inherited from object

Returns

`Type`

## Properties

`public static VisioShapeBounds Empty { get; }` [#](#property-empty)

[VisioShapeBounds.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Layout/VisioShapeBounds.cs#L34)

Empty bounds.

`public OfficeLength Left { get; }` [#](#property-left)

[VisioShapeBounds.cs:61](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Layout/VisioShapeBounds.cs#L61)

Gets the physical left edge.

`public OfficeLength Bottom { get; }` [#](#property-bottom)

[VisioShapeBounds.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Layout/VisioShapeBounds.cs#L64)

Gets the physical bottom edge.

`public OfficeLength Right { get; }` [#](#property-right)

[VisioShapeBounds.cs:67](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Layout/VisioShapeBounds.cs#L67)

Gets the physical right edge.

`public OfficeLength Top { get; }` [#](#property-top)

[VisioShapeBounds.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Layout/VisioShapeBounds.cs#L70)

Gets the physical top edge.

`public OfficeLength Width { get; }` [#](#property-width)

[VisioShapeBounds.cs:73](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Layout/VisioShapeBounds.cs#L73)

Gets the physical width.

`public OfficeLength Height { get; }` [#](#property-height)

[VisioShapeBounds.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Layout/VisioShapeBounds.cs#L76)

Gets the physical height.

`public OfficeLength CenterX { get; }` [#](#property-centerx)

[VisioShapeBounds.cs:79](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Layout/VisioShapeBounds.cs#L79)

Gets the horizontal center.

`public OfficeLength CenterY { get; }` [#](#property-centery)

[VisioShapeBounds.cs:82](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Layout/VisioShapeBounds.cs#L82)

Gets the vertical center.

`public bool IsEmpty { get; }` [#](#property-isempty)

[VisioShapeBounds.cs:85](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Layout/VisioShapeBounds.cs#L85)

Whether the bounds contain no shapes.

<!-- PowerForge markdown artifact sha256:E9CFE8D119A570556B1C3FD49A2C1A42659FB2A1B1764BAB823C723D6CE7038B -->
