# OfficeTextBlockBackgroundBounds

Rectangle around a measured text block, usually used for text background rendering.

Struct 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeTextBlockRenderPlan.cs:291](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextBlockRenderPlan.cs#L291)

**Base**

`ValueType`

**Modifiers**

sealed

Rectangle around a measured text block, usually used for text background rendering.

## Inheritance

- ValueType
- OfficeTextBlockBackgroundBounds

## Usage

Explore 1 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 [OfficeTextBlockRenderPlan.CreateBackgroundBounds](/api/core/officeimo-drawing-officetextblockrenderplan/#method-createbackgroundbounds-double-double)

Filter members 

Show inherited

## Constructors

`public OfficeTextBlockBackgroundBounds(double left, double top, double width, double height)` [#](#constructor-ctor-double-double-double-double)

[OfficeTextBlockRenderPlan.cs:291](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextBlockRenderPlan.cs#L291)

Creates text background bounds.

Parameters

**left double required**

**top double required**

**width double required**

**height double required**

## Methods

`public OfficePoint[] GetCorners()` [#](#method-getcorners)

[OfficeTextBlockRenderPlan.cs:311](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextBlockRenderPlan.cs#L311)

Unrotated rectangle corners in clockwise order.

Returns

`OfficePoint[]`

`public OfficePoint[] GetRotatedCorners(double rotationDegrees, double centerX, double centerY)` [#](#method-getrotatedcorners-double-double-double)

[OfficeTextBlockRenderPlan.cs:322](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextBlockRenderPlan.cs#L322)

Rotates rectangle corners around a supplied center using clockwise degrees.

Parameters

**rotationDegrees double required**

**centerX double required**

**centerY double required**

Returns

`OfficePoint[]`

## 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 double Left { get; }` [#](#property-left)

[OfficeTextBlockRenderPlan.cs:298](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextBlockRenderPlan.cs#L298)

Left edge of the background rectangle.

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

[OfficeTextBlockRenderPlan.cs:301](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextBlockRenderPlan.cs#L301)

Top edge of the background rectangle.

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

[OfficeTextBlockRenderPlan.cs:304](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextBlockRenderPlan.cs#L304)

Background rectangle width.

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

[OfficeTextBlockRenderPlan.cs:307](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextBlockRenderPlan.cs#L307)

Background rectangle height.

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