# OfficeChartManualLayout

A position, and optionally a size, set by hand for a chart's plot area, title or legend (OOXML c:manualLayout).

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`56dd0d38e0b5` with working tree changes

**Source**

[OfficeChartManualLayout.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Core/OfficeChartManualLayout.cs#L16)

**Modifiers**

sealed

A position, and optionally a size, set by hand for a chart's plot area, title or legend (OOXML c:manualLayout). Every value is a fraction of the chart's width or height.

## Inheritance

- object
- OfficeChartManualLayout

## Usage

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

- Property [OfficeChartLayout.LegendLayout](/api/core/officeimo-drawing-officechartlayout/#property-legendlayout)
- Property [OfficeChartLayout.PlotAreaLayout](/api/core/officeimo-drawing-officechartlayout/#property-plotarealayout)
- Property [OfficeChartLayout.TitleLayout](/api/core/officeimo-drawing-officechartlayout/#property-titlelayout)

### Accepted by parameters 3

- Method [OfficeChartLayout.WithManualLayouts](/api/core/officeimo-drawing-officechartlayout/#method-withmanuallayouts-officeimo-drawing-officechartmanuallayout-officeimo-drawing-officechartmanuallayout-officeimo-drawing-officechartmanuallayout) parameter `legend`
- Method [OfficeChartLayout.WithManualLayouts](/api/core/officeimo-drawing-officechartlayout/#method-withmanuallayouts-officeimo-drawing-officechartmanuallayout-officeimo-drawing-officechartmanuallayout-officeimo-drawing-officechartmanuallayout) parameter `plotArea`
- Method [OfficeChartLayout.WithManualLayouts](/api/core/officeimo-drawing-officechartlayout/#method-withmanuallayouts-officeimo-drawing-officechartmanuallayout-officeimo-drawing-officechartmanuallayout-officeimo-drawing-officechartmanuallayout) parameter `title`

Filter members 

Show inherited

## Constructors

`public OfficeChartManualLayout(double x, double y, double? width = null, double? height = null, OfficeChartLayoutMode xMode = Factor, OfficeChartLayoutMode yMode = Factor, OfficeChartLayoutMode widthMode = Factor, OfficeChartLayoutMode heightMode = Factor, OfficeChartLayoutTarget target = Outer)` [#](#member-32c1ac43cb023a73384acbc2)

[OfficeChartManualLayout.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Core/OfficeChartManualLayout.cs#L16)

Creates a manual layout.

Parameters

**x double required**

Left position as a fraction of the chart width: the left edge, or an offset from the automatic position.

**y double required**

Top position as a fraction of the chart height: the top edge, or an offset from the automatic position.

**width double? = null optional**

Width as a fraction of the chart width, or the right edge in [OfficeChartLayoutMode.Edge](/api/core/officeimo-drawing-officechartlayoutmode/) mode; null keeps the automatic width.

**height double? = null optional**

Height as a fraction of the chart height, or the bottom edge in [OfficeChartLayoutMode.Edge](/api/core/officeimo-drawing-officechartlayoutmode/) mode; null keeps the automatic height.

**xMode OfficeIMO.Drawing.OfficeChartLayoutMode = Factor optional**

Whether x is the left edge or an offset from the automatic position.

**yMode OfficeIMO.Drawing.OfficeChartLayoutMode = Factor optional**

Whether y is the top edge or an offset from the automatic position.

**widthMode OfficeIMO.Drawing.OfficeChartLayoutMode = Factor optional**

Whether width is a width or the right edge.

**heightMode OfficeIMO.Drawing.OfficeChartLayoutMode = Factor optional**

Whether height is a height or the bottom edge.

**target OfficeIMO.Drawing.OfficeChartLayoutTarget = Outer optional**

For a plot area, whether the rectangle excludes (inner) or includes (outer) the axis labels.

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

[OfficeChartManualLayout.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Core/OfficeChartManualLayout.cs#L33)

Left position as a fraction of the chart width.

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

[OfficeChartManualLayout.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Core/OfficeChartManualLayout.cs#L36)

Top position as a fraction of the chart height.

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

[OfficeChartManualLayout.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Core/OfficeChartManualLayout.cs#L39)

Width (or right edge) as a fraction of the chart width, or null for the automatic width.

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

[OfficeChartManualLayout.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Core/OfficeChartManualLayout.cs#L42)

Height (or bottom edge) as a fraction of the chart height, or null for the automatic height.

`public OfficeChartLayoutMode XMode { get; }` [#](#property-xmode)

[OfficeChartManualLayout.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Core/OfficeChartManualLayout.cs#L45)

How [OfficeChartManualLayout.X](/api/core/officeimo-drawing-officechartmanuallayout/) is interpreted.

`public OfficeChartLayoutMode YMode { get; }` [#](#property-ymode)

[OfficeChartManualLayout.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Core/OfficeChartManualLayout.cs#L48)

How [OfficeChartManualLayout.Y](/api/core/officeimo-drawing-officechartmanuallayout/) is interpreted.

`public OfficeChartLayoutMode WidthMode { get; }` [#](#property-widthmode)

[OfficeChartManualLayout.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Core/OfficeChartManualLayout.cs#L51)

How [OfficeChartManualLayout.Width](/api/core/officeimo-drawing-officechartmanuallayout/) is interpreted.

`public OfficeChartLayoutMode HeightMode { get; }` [#](#property-heightmode)

[OfficeChartManualLayout.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Core/OfficeChartManualLayout.cs#L54)

How [OfficeChartManualLayout.Height](/api/core/officeimo-drawing-officechartmanuallayout/) is interpreted.

`public OfficeChartLayoutTarget Target { get; }` [#](#property-target)

[OfficeChartManualLayout.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Core/OfficeChartManualLayout.cs#L57)

For a plot area, whether the rectangle excludes or includes the axis labels.

<!-- PowerForge markdown artifact sha256:8BD552555A87D0BBF219DC581B53C30F90DCF99BF377E8CDCA0879E5A64FAE0C -->
