Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeChartManualLayout

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
56dd0d38e0b5 with working tree changes
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.

Accepted by parameters 3

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

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

Properties

public double X { get; } #

Left position as a fraction of the chart width.

public double Y { get; } #

Top position as a fraction of the chart height.

public double? Width { get; } #

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

public double? Height { get; } #

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

public OfficeChartLayoutMode XMode { get; } #

How OfficeChartManualLayout.X is interpreted.

public OfficeChartLayoutMode YMode { get; } #

How OfficeChartManualLayout.Y is interpreted.

public OfficeChartLayoutMode WidthMode { get; } #

How OfficeChartManualLayout.Width is interpreted.

public OfficeChartLayoutMode HeightMode { get; } #

How OfficeChartManualLayout.Height is interpreted.

public OfficeChartLayoutTarget Target { get; } #

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