# OfficeShapeKind

Shared shape kinds that OfficeIMO packages can map into their own document formats.

Enum 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeShapeKind.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeShapeKind.cs#L6)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Shared shape kinds that OfficeIMO packages can map into their own document formats.

## Inheritance

- Enum
- OfficeShapeKind

## Usage

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

- Property [OfficeShape.Kind](/api/core/officeimo-drawing-officeshape/#property-kind)
- Field [OfficeShapeKind.Ellipse](/api/core/officeimo-drawing-officeshapekind/#field-ellipse)
- Field [OfficeShapeKind.Line](/api/core/officeimo-drawing-officeshapekind/#field-line)
- Field [OfficeShapeKind.Path](/api/core/officeimo-drawing-officeshapekind/#field-path)
- Field [OfficeShapeKind.Polygon](/api/core/officeimo-drawing-officeshapekind/#field-polygon)
- Field [OfficeShapeKind.Rectangle](/api/core/officeimo-drawing-officeshapekind/#field-rectangle)
- Field [OfficeShapeKind.RoundedRectangle](/api/core/officeimo-drawing-officeshapekind/#field-roundedrectangle)

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

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

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from Enum

Returns

`int`

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

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

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

Inherited from Enum

Returns

`string`

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

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const OfficeShapeKind Rectangle` [#](#field-rectangle)

[OfficeShapeKind.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeShapeKind.cs#L8)

Axis-aligned rectangle.

Value: `0`

`public const OfficeShapeKind Ellipse` [#](#field-ellipse)

[OfficeShapeKind.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeShapeKind.cs#L11)

Axis-aligned ellipse bounded by width and height.

Value: `1`

`public const OfficeShapeKind Polygon` [#](#field-polygon)

[OfficeShapeKind.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeShapeKind.cs#L14)

Closed polygon described by local points.

Value: `2`

`public const OfficeShapeKind Path` [#](#field-path)

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

Freeform path described by path commands.

Value: `3`

`public const OfficeShapeKind Line` [#](#field-line)

[OfficeShapeKind.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeShapeKind.cs#L20)

Open straight line described by two local points.

Value: `4`

`public const OfficeShapeKind RoundedRectangle` [#](#field-roundedrectangle)

[OfficeShapeKind.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeShapeKind.cs#L23)

Axis-aligned rectangle with rounded corners.

Value: `5`

<!-- PowerForge markdown artifact sha256:3AEF6DFC4825AD37C29E8FE872034535759C69A584A64F5E7F7958B32C406208 -->
