ChartLayoutImpl Class
Class used for setting chart elements layout
Inherited Members
Namespace: Syncfusion.XlsIO.Implementation.Charts
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
public class ChartLayoutImpl : CommonObject, IDisposable, IChartLayout, IParentApplication
Constructors
ChartLayoutImpl(IApplication, Object, Boolean)
Creates chart and sets its Application and Parent properties to specified values.
Declaration
public ChartLayoutImpl(IApplication application, object parent, bool bSetDefaults)
Parameters
Type | Name | Description |
---|---|---|
IApplication | application | Application object for the chart. |
System.Object | parent | Parent object for the chart. |
System.Boolean | bSetDefaults | Indicates whether we should set defaults for fill and border properties. |
ChartLayoutImpl(IApplication, Object, Boolean, Boolean, Boolean)
Creates chart and sets its Application and Parent properties to specified values.
Declaration
public ChartLayoutImpl(IApplication application, object parent, bool bAutoSize, bool bIsInteriorGrey, bool bSetDefaults)
Parameters
Type | Name | Description |
---|---|---|
IApplication | application | Application object for the chart. |
System.Object | parent | Parent object for the chart. |
System.Boolean | bAutoSize | Indicates is auto size. |
System.Boolean | bIsInteriorGrey | Indicates is interior is gray. |
System.Boolean | bSetDefaults | Indicates whether we should set defaults for fill and border properties. |
ChartLayoutImpl(IApplication, Object, Object)
Creates chart and sets its Application and Parent properties to specified values.
Declaration
public ChartLayoutImpl(IApplication application, object parent, object chartObject)
Parameters
Type | Name | Description |
---|---|---|
IApplication | application | Application object for the chart. |
System.Object | parent | Parent object for the chart. |
System.Object | chartObject |
Fields
m_book
Parent chart.
Declaration
protected ChartImpl m_book
Field Value
Type |
---|
ChartImpl |
m_chart
Chart interface
Declaration
protected IChart m_chart
Field Value
Type |
---|
IChart |
m_chartShape
ChartShape interface
Declaration
protected IShape m_chartShape
Field Value
Type |
---|
IShape |
m_manualLayout
Manual layout
Declaration
protected IChartManualLayout m_manualLayout
Field Value
Type |
---|
IChartManualLayout |
m_Parent
Parent object
Declaration
protected object m_Parent
Field Value
Type |
---|
System.Object |
Properties
Height
Gets or sets the height/bottom of the chart element as a fraction of height of the chart, based on HeightMode.
Declaration
public double Height { get; set; }
Property Value
Type |
---|
System.Double |
HeightMode
Gets or sets a value indicating how to interpret the Height of this manual layout.
Declaration
public LayoutModes HeightMode { get; set; }
Property Value
Type |
---|
LayoutModes |
LayoutTarget
Gets or sets the layout target for the plot area.
Declaration
public LayoutTargets LayoutTarget { get; set; }
Property Value
Type |
---|
LayoutTargets |
Left
Gets or sets the left (x location) of the chart element as a fraction of width of the chart.
Declaration
public double Left { get; set; }
Property Value
Type |
---|
System.Double |
Remarks
If LeftMode is factor, then the position is relative to the default position for the chart element.
LeftMode
Gets or sets a value indicating how to interpret the Left of this manual layout.
Declaration
public LayoutModes LeftMode { get; set; }
Property Value
Type |
---|
LayoutModes |
ManualLayout
Gets or sets manual layout options for the chart element.
Declaration
public IChartManualLayout ManualLayout { get; set; }
Property Value
Type |
---|
IChartManualLayout |
Parent
Return the parent object. Read-only.
Declaration
public object Parent { get; }
Property Value
Type |
---|
System.Object |
Top
Gets or sets the top of the chart element as a fraction of height of the chart.
Declaration
public double Top { get; set; }
Property Value
Type |
---|
System.Double |
Remarks
If TopMode is factor, then the position is relative to the default position for the chart element.
TopMode
Gets or sets a value indicating how to interpret the Top of this manual layout.
Declaration
public LayoutModes TopMode { get; set; }
Property Value
Type |
---|
LayoutModes |
Width
Gets or sets the width/right of the chart element as a fraction of width of the chart, based on WidthMode.
Declaration
public double Width { get; set; }
Property Value
Type |
---|
System.Double |
WidthMode
Gets or sets a value indicating how to interpret the Width of this manual layout.
Declaration
public LayoutModes WidthMode { get; set; }
Property Value
Type |
---|
LayoutModes |
Workbook
Returns parent workbook. Read-only.
Declaration
public WorkbookImpl Workbook { get; }
Property Value
Type |
---|
WorkbookImpl |
Methods
SetDefaultValues()
Set variable to the default state.
Declaration
public void SetDefaultValues()