# OfficeDrawingShape

Positioned shape inside an OfficeDrawing canvas. Coordinates use the drawing's local top-left coordinate space.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

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

**Base**

`OfficeDrawingElement`

**Modifiers**

sealed

Positioned shape inside an [OfficeDrawing](/api/core/officeimo-drawing-officedrawing/) canvas. Coordinates use the drawing's local top-left coordinate space. Standalone shapes may use finite negative coordinates for clipped intermediate scenes; [OfficeDrawing.AddShape](/api/core/officeimo-drawing-officedrawing/) still enforces canvas bounds.

## Inheritance

- [OfficeDrawingElement](/api/core/officeimo-drawing-officedrawingelement/)
- OfficeDrawingShape

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

- Property [OfficeDrawing.Shapes](/api/core/officeimo-drawing-officedrawing/#property-shapes)
- Method [OfficeDrawingShape.Clone](/api/core/officeimo-drawing-officedrawingshape/#method-clone)

Filter members 

Show inherited

## Constructors

`public OfficeDrawingShape(OfficeShape shape, double x, double y)` [#](#constructor-ctor-officeimo-drawing-officeshape-double-double)

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

Creates a positioned shape.

Parameters

**shape OfficeIMO.Drawing.OfficeShape required**

**x double required**

**y double required**

## Methods

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

[OfficeDrawingShape.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeDrawingShape.cs#L42)

Creates a detached copy of this positioned shape.

Returns

`OfficeDrawingShape`

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

[OfficeDrawingShape.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeDrawingShape.cs#L10)

Shape horizontal position inside the drawing.

`public double Y { get; }` [#](#property-y)

[OfficeDrawingShape.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeDrawingShape.cs#L13)

Shape vertical position inside the drawing.

`public OfficeShape Shape { get; }` [#](#property-shape)

[OfficeDrawingShape.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeDrawingShape.cs#L16)

Detached shape descriptor.

<!-- PowerForge markdown artifact sha256:487840AF174A737F766C0988FD54B7F3D199134387ACC0763BFD579188D05516 -->
