# OfficeInkBounds

Axis-aligned bounds of format-neutral ink content.

Struct 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`013c05ace7bb` with working tree changes

**Source**

[OfficeInkModel.cs:145](https://github.com/EvotecIT/OfficeIMO/blob/013c05ace7bb14e293639941ec9cf54eb5177a90/OfficeIMO.Core/Ink/OfficeInkModel.cs#L145)

**Base**

`ValueType`

**Implements**

`IEquatable<OfficeInkBounds>`

**Modifiers**

sealed

Axis-aligned bounds of format-neutral ink content.

## Inheritance

- ValueType
- OfficeInkBounds

## Usage

Explore 6 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 4

- Method [OfficeInkBounds.Union](/api/core/officeimo-drawing-officeinkbounds/#method-union-officeimo-drawing-officeinkbounds)
- Property [OfficeInkBounds.Empty](/api/core/officeimo-drawing-officeinkbounds/#property-empty)
- Method [OfficeInkDocument.GetBounds](/api/core/officeimo-drawing-officeinkdocument/#method-getbounds)
- Method [OfficeInkStroke.GetBounds](/api/core/officeimo-drawing-officeinkstroke/#method-getbounds)

### Accepted by parameters 2

- Method [OfficeInkBounds.Equals](/api/core/officeimo-drawing-officeinkbounds/#method-equals-officeimo-drawing-officeinkbounds) parameter `other`
- Method [OfficeInkBounds.Union](/api/core/officeimo-drawing-officeinkbounds/#method-union-officeimo-drawing-officeinkbounds) parameter `other`

Filter members 

Show inherited

## Constructors

`public OfficeInkBounds(double x, double y, double width, double height)` [#](#constructor-ctor-double-double-double-double)

[OfficeInkModel.cs:145](https://github.com/EvotecIT/OfficeIMO/blob/013c05ace7bb14e293639941ec9cf54eb5177a90/OfficeIMO.Core/Ink/OfficeInkModel.cs#L145)

Creates non-empty ink bounds.

Parameters

**x double required**

**y double required**

**width double required**

**height double required**

## Methods

Equals 2 overloads

`public bool Equals(OfficeInkBounds other)` [#](#method-equals-officeimo-drawing-officeinkbounds)

[OfficeInkModel.cs:168](https://github.com/EvotecIT/OfficeIMO/blob/013c05ace7bb14e293639941ec9cf54eb5177a90/OfficeIMO.Core/Ink/OfficeInkModel.cs#L168)

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

Parameters

**other OfficeIMO.Drawing.OfficeInkBounds 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)

[OfficeInkModel.cs:172](https://github.com/EvotecIT/OfficeIMO/blob/013c05ace7bb14e293639941ec9cf54eb5177a90/OfficeIMO.Core/Ink/OfficeInkModel.cs#L172)

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)

[OfficeInkModel.cs:177](https://github.com/EvotecIT/OfficeIMO/blob/013c05ace7bb14e293639941ec9cf54eb5177a90/OfficeIMO.Core/Ink/OfficeInkModel.cs#L177)

Returns the hash code for this instance.

Returns

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

`public OfficeInkBounds Union(OfficeInkBounds other)` [#](#method-union-officeimo-drawing-officeinkbounds)

[OfficeInkModel.cs:157](https://github.com/EvotecIT/OfficeIMO/blob/013c05ace7bb14e293639941ec9cf54eb5177a90/OfficeIMO.Core/Ink/OfficeInkModel.cs#L157)

Returns bounds covering this value and another value.

Parameters

**other OfficeIMO.Drawing.OfficeInkBounds required**

Returns

`OfficeInkBounds`

## Inherited Methods

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

Inherited from object

Returns

`Type`

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

Inherited from ValueType

Returns

`string?`

## Properties

`public double X { get; }` [#](#property-x)

[OfficeInkModel.cs:121](https://github.com/EvotecIT/OfficeIMO/blob/013c05ace7bb14e293639941ec9cf54eb5177a90/OfficeIMO.Core/Ink/OfficeInkModel.cs#L121)

Horizontal origin.

`public double Y { get; }` [#](#property-y)

[OfficeInkModel.cs:124](https://github.com/EvotecIT/OfficeIMO/blob/013c05ace7bb14e293639941ec9cf54eb5177a90/OfficeIMO.Core/Ink/OfficeInkModel.cs#L124)

Vertical origin.

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

[OfficeInkModel.cs:127](https://github.com/EvotecIT/OfficeIMO/blob/013c05ace7bb14e293639941ec9cf54eb5177a90/OfficeIMO.Core/Ink/OfficeInkModel.cs#L127)

Bounds width.

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

[OfficeInkModel.cs:130](https://github.com/EvotecIT/OfficeIMO/blob/013c05ace7bb14e293639941ec9cf54eb5177a90/OfficeIMO.Core/Ink/OfficeInkModel.cs#L130)

Bounds height.

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

[OfficeInkModel.cs:133](https://github.com/EvotecIT/OfficeIMO/blob/013c05ace7bb14e293639941ec9cf54eb5177a90/OfficeIMO.Core/Ink/OfficeInkModel.cs#L133)

Whether the bounds contain no ink samples.

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

[OfficeInkModel.cs:153](https://github.com/EvotecIT/OfficeIMO/blob/013c05ace7bb14e293639941ec9cf54eb5177a90/OfficeIMO.Core/Ink/OfficeInkModel.cs#L153)

An empty bounds value.

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