# OfficeShadow

Dependency-free shadow intent for reusable drawing shapes. Positive Y offsets move the shadow down in the shape's local top-left coordinate space.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeShadow.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeShadow.cs#L24)

**Modifiers**

sealed

Dependency-free shadow intent for reusable drawing shapes. Positive Y offsets move the shadow down in the shape's local top-left coordinate space.

## Inheritance

- object
- OfficeShadow

## Usage

Explore 2 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 2

- Method [OfficeShadow.Clone](/api/core/officeimo-drawing-officeshadow/#method-clone)
- Property [OfficeShape.Shadow](/api/core/officeimo-drawing-officeshape/#property-shadow)

Filter members 

Show inherited

## Constructors

`public OfficeShadow(OfficeColor color, double opacity, double offsetX, double offsetY, double blurRadius = 0)` [#](#constructor-ctor-officeimo-officecolor-double-double-double-double)

[OfficeShadow.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeShadow.cs#L24)

Creates a shadow descriptor.

Parameters

**color OfficeIMO.OfficeColor required**

**opacity double required**

**offsetX double required**

**offsetY double required**

**blurRadius double = 0 optional**

## Methods

`public OfficeShadow Clone()` [#](#method-clone)

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

Creates a detached copy.

Returns

`OfficeShadow`

## Inherited Methods

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

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from object

Returns

`int`

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

Inherited from object

Returns

`Type`

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

Inherited from object

Returns

`string?`

## Properties

`public OfficeColor Color { get; }` [#](#property-color)

[OfficeShadow.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeShadow.cs#L9)

Shadow color.

`public double Opacity { get; }` [#](#property-opacity)

[OfficeShadow.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeShadow.cs#L12)

Shadow opacity from 0.0 to 1.0.

`public double OffsetX { get; }` [#](#property-offsetx)

[OfficeShadow.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeShadow.cs#L15)

Horizontal shadow offset in the caller's layout unit.

`public double OffsetY { get; }` [#](#property-offsety)

[OfficeShadow.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeShadow.cs#L18)

Vertical shadow offset in the caller's layout unit.

`public double BlurRadius { get; }` [#](#property-blurradius)

[OfficeShadow.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeShadow.cs#L21)

Approximate blur radius in the caller's layout unit.

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