# OdfInsets

Top, right, bottom, and left ODF lengths.

Struct 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OdfInsets.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Values/OdfInsets.cs#L7)

**Base**

`ValueType`

**Implements**

`IEquatable<OdfInsets>`

**Modifiers**

sealed

Top, right, bottom, and left ODF lengths.

## Inheritance

- ValueType
- OdfInsets

## Usage

Explore 14 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 13

- Method [OdfInsets.FromCentimeters](/api/open-document/officeimo-opendocument-odfinsets/#method-fromcentimeters-double-double-double-double)
- Property [OdfShape.TextPadding](/api/open-document/officeimo-opendocument-odfshape/#property-textpadding)
- Property [OdgShape.Crop](/api/open-document/officeimo-opendocument-odgshape/#property-crop)
- Property [OdgShape.TextPadding](/api/open-document/officeimo-opendocument-odgshape/#property-textpadding)
- Property [OdpEllipse.TextPadding](/api/open-document/officeimo-opendocument-odpellipse/#property-textpadding)
- Property [OdpGroup.TextPadding](/api/open-document/officeimo-opendocument-odpgroup/#property-textpadding)
- Property [OdpImage.Crop](/api/open-document/officeimo-opendocument-odpimage/#property-crop)
- Property [OdpImage.TextPadding](/api/open-document/officeimo-opendocument-odpimage/#property-textpadding)
- Property [OdpLine.TextPadding](/api/open-document/officeimo-opendocument-odpline/#property-textpadding)
- Property [OdpRectangle.TextPadding](/api/open-document/officeimo-opendocument-odprectangle/#property-textpadding)
- Property [OdpShape.TextPadding](/api/open-document/officeimo-opendocument-odpshape/#property-textpadding)
- Property [OdpTable.TextPadding](/api/open-document/officeimo-opendocument-odptable/#property-textpadding)
- Property [OdpTextBox.TextPadding](/api/open-document/officeimo-opendocument-odptextbox/#property-textpadding)

### Accepted by parameters 1

- Method [OdfInsets.Equals](/api/open-document/officeimo-opendocument-odfinsets/#method-equals-officeimo-opendocument-odfinsets) parameter `other`

Filter members 

Show inherited

## Constructors

`public OdfInsets(OdfLength top, OdfLength right, OdfLength bottom, OdfLength left)` [#](#constructor-ctor-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength)

[OdfInsets.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Values/OdfInsets.cs#L7)

Creates four-sided insets.

Parameters

**top OfficeIMO.OpenDocument.OdfLength required**

**right OfficeIMO.OpenDocument.OdfLength required**

**bottom OfficeIMO.OpenDocument.OdfLength required**

**left OfficeIMO.OpenDocument.OdfLength required**

## Methods

Equals 2 overloads

`public bool Equals(OdfInsets other)` [#](#method-equals-officeimo-opendocument-odfinsets)

[OdfInsets.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Values/OdfInsets.cs#L21)

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

Parameters

**other OfficeIMO.OpenDocument.OdfInsets 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)

[OdfInsets.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Values/OdfInsets.cs#L23)

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 static OdfInsets FromCentimeters(double top, double right, double bottom, double left)` [#](#method-fromcentimeters-double-double-double-double)

[OdfInsets.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Values/OdfInsets.cs#L18)

Creates centimeter insets.

Parameters

**top double required**

**right double required**

**bottom double required**

**left double required**

Returns

`OdfInsets`

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

[OdfInsets.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Values/OdfInsets.cs#L25)

Returns the hash code for this instance.

Returns

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

## 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 OdfLength Top { get; }` [#](#property-top)

[OdfInsets.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Values/OdfInsets.cs#L10)

Top inset.

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

[OdfInsets.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Values/OdfInsets.cs#L12)

Right inset.

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

[OdfInsets.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Values/OdfInsets.cs#L14)

Bottom inset.

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

[OdfInsets.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Values/OdfInsets.cs#L16)

Left inset.

<!-- PowerForge markdown artifact sha256:808CACB11E87FDCA4396B1D44CB1C6443A9BC8738AE9B7DF811B7EA4ECAF9654 -->
