Show / Hide Table of Contents

Class ExcelManualLayout

Manual layout for specifing positions of elements manually. For easiest use it is recommended to not change the modes of width or height. Left and Top are used to determine x and y position Width and Height to define the width and height of the element. By default all elements originate from their default Use eLayoutMode.Edge to set origin to the edge of the chart for the relevant element.

Inheritance
System.Object
XmlHelper
ExcelManualLayout
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OfficeOpenXml.Drawing.Chart
Assembly: EPPlus.dll
Syntax
public class ExcelManualLayout : XmlHelper

Properties

Height

Height offset between 100 to -100% of the chart height. In Excel exceeding these values counts as setting the property to 0.

Declaration
public double? Height { get; set; }
Property Value
Type Description
System.Nullable<System.Double>

HeightMode

Define mode for Height (Bottom) attribute Using edge is not recommended. Edge for Height to be considered the bottom of the chart element. Note: In this case Height will be used for determining Both the element width and its bottom.

Declaration
public eLayoutMode HeightMode { get; set; }
Property Value
Type Description
eLayoutMode

Left

Left offset between 100 to -100% of the chart width. In Excel exceeding these values counts as setting the property to 0. In Edge mode negative values are not allowed.

Declaration
public double? Left { get; set; }
Property Value
Type Description
System.Nullable<System.Double>

LeftMode

Define mode for Left (x) attribute Edge for origin point left chart edge, Factor for origin point DataLabel position

Declaration
public eLayoutMode LeftMode { get; set; }
Property Value
Type Description
eLayoutMode

LegacyHeight

Bottom offset between 100 to -100% of the chart width. In Excel exceeding these values counts as setting the property to 0. Legacy variable. if Height property is set this will be overridden.

Declaration
public double? LegacyHeight { get; set; }
Property Value
Type Description
System.Nullable<System.Double>

LegacyHeightMode

Define mode for Height (Bottom) attribute Using edge is not recommended. Edge for Height to be considered the bottom of the chart element.

Legacy variable. if HeightMode property is set this will be overridden.

Declaration
public eLayoutMode LegacyHeightMode { get; set; }
Property Value
Type Description
eLayoutMode

LegacyWidth

Right offset between 100 to -100% of the chart width. In Excel exceeding these values counts as setting the property to 0. Legacy variable. if Height property is set this will be overridden.

Declaration
public double? LegacyWidth { get; set; }
Property Value
Type Description
System.Nullable<System.Double>

LegacyWidthMode

Define mode for Width (Right) attribute Using edge is not recommended. Edge for Width to be considered the Right of the chart element. Note: In this case Width will be used for determining Both the element width and its right.

Legacy variable. if WidthMode property is set this will be overridden.

Declaration
public eLayoutMode LegacyWidthMode { get; set; }
Property Value
Type Description
eLayoutMode

Top

Top offset between 100 to -100% of the chart height. In Excel exceeding these values counts as setting the property to 0. In Edge mode negative values are not allowed.

Declaration
public double? Top { get; set; }
Property Value
Type Description
System.Nullable<System.Double>

TopMode

Define mode for Top (y) attribute Edge for origin point top chart edge, Factor for origin point DataLabel position

Declaration
public eLayoutMode TopMode { get; set; }
Property Value
Type Description
eLayoutMode

Width

Width offset between 100 to -100% of the chart width. In Excel exceeding these values counts as setting the property to 0.

Declaration
public double? Width { get; set; }
Property Value
Type Description
System.Nullable<System.Double>

WidthMode

Define mode for Width (Right) attribute Using edge is not recommended. Edge for Width to be considered the Right of the chart element. Note: In this case Width will be used for determining Both the element width and its right.

Declaration
public eLayoutMode WidthMode { get; set; }
Property Value
Type Description
eLayoutMode
In This Article
Back to top Generated by DocFX