# OfficeBorderBox

Describes the four independent edges of a rectangular border box.

Struct 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeBorderBox.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeBorderBox.cs#L17)

**Base**

`ValueType`

**Modifiers**

sealed

Describes the four independent edges of a rectangular border box.

## Inheritance

- ValueType
- OfficeBorderBox

## Usage

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

- Method [OfficeBorderBox.Uniform](/api/core/officeimo-drawing-officeborderbox/#method-uniform-officeimo-drawing-officeborderside)

### Accepted by parameters 3

- Method [OfficeBorderBoxRenderer.AppendSvg](/api/core/officeimo-drawing-officeborderboxrenderer/#method-appendsvg-text-stringbuilder-double-double-double-double-officeimo-drawing-officeborderbox) parameter `borders`
- Method [OfficeBorderBoxRenderer.DrawRaster](/api/core/officeimo-drawing-officeborderboxrenderer/#method-drawraster-officeimo-drawing-officerastercanvas-double-double-double-double-officeimo-drawing-officeborderbox) parameter `borders`
- Method [OfficeDrawing.AddBorderBox](/api/core/officeimo-drawing-officedrawing/#method-addborderbox-double-double-double-double-nullable-officeimo-officecolor-officeimo-drawing-officeborderbox-nullable-officeimo-drawing-officetransform) parameter `borders`

Filter members 

Show inherited

## Constructors

`public OfficeBorderBox(OfficeBorderSide? left = null, OfficeBorderSide? top = null, OfficeBorderSide? right = null, OfficeBorderSide? bottom = null, OfficeBorderSide? diagonalDown = null, OfficeBorderSide? diagonalUp = null)` [#](#member-9584cde4cdb3f37b07b2efde)

[OfficeBorderBox.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeBorderBox.cs#L17)

Creates a border box with independent edges.

Parameters

**left OfficeIMO.Drawing.OfficeBorderSide? = null optional**

**top OfficeIMO.Drawing.OfficeBorderSide? = null optional**

**right OfficeIMO.Drawing.OfficeBorderSide? = null optional**

**bottom OfficeIMO.Drawing.OfficeBorderSide? = null optional**

**diagonalDown OfficeIMO.Drawing.OfficeBorderSide? = null optional**

**diagonalUp OfficeIMO.Drawing.OfficeBorderSide? = null optional**

## Methods

`public static OfficeBorderBox Uniform(OfficeBorderSide side)` [#](#method-uniform-officeimo-drawing-officeborderside)

[OfficeBorderBox.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeBorderBox.cs#L55)

Creates a border box where all edges use the same side definition.

Parameters

**side OfficeIMO.Drawing.OfficeBorderSide required**

Returns

`OfficeBorderBox`

## Inherited Methods

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

Inherited from ValueType

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from ValueType

Returns

`int`

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

Inherited from object

Returns

`Type`

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

Inherited from ValueType

Returns

`string?`

## Properties

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

[OfficeBorderBox.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeBorderBox.cs#L26)

Left edge, or null when absent.

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

[OfficeBorderBox.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeBorderBox.cs#L29)

Top edge, or null when absent.

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

[OfficeBorderBox.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeBorderBox.cs#L32)

Right edge, or null when absent.

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

[OfficeBorderBox.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeBorderBox.cs#L35)

Bottom edge, or null when absent.

`public OfficeBorderSide? DiagonalDown { get; }` [#](#property-diagonaldown)

[OfficeBorderBox.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeBorderBox.cs#L38)

Top-left to bottom-right diagonal edge, or null when absent.

`public OfficeBorderSide? DiagonalUp { get; }` [#](#property-diagonalup)

[OfficeBorderBox.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeBorderBox.cs#L41)

Bottom-left to top-right diagonal edge, or null when absent.

`public bool HasVisibleSide { get; }` [#](#property-hasvisibleside)

[OfficeBorderBox.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeBorderBox.cs#L45)

Whether at least one edge is visible.

<!-- PowerForge markdown artifact sha256:5A5855421CA296E8C1F7F169C40E532EF0FF17C5456ADB9057A4E0F761B79ECE -->
