Click or drag to resize

XlsChartLegend Class

Represents a legend in an Excel chart, providing options to customize its appearance and position.
Inheritance Hierarchy
System Object
Spire.Xls.Core.Spreadsheet XlsObject
Spire.Xls.Core.Spreadsheet.Charts XlsChartLegend
Spire.Xls.Charts ChartLegend

Namespace: Spire.Xls.Core.Spreadsheet.Charts
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public class XlsChartLegend : XlsObject, 
	IChartLegend

The XlsChartLegend type exposes the following members.

Properties
Name Description
Public property AutoPosition
Automatic positioning .
Public property AutoPositionX
X positioning is automatic.
Public property AutoPositionY
Y positioning is automatic.
Public property FrameFormat
Gets or sets the frame format of the chart.
Public property HasDataTable
True if chart contains data table.
Public property Height
Y-size. 1/4000 of chart plot. IsHMode Shall set to True
Public property IncludeInLayout
Show legend without overlapping. Default is True.
Public property InnerLayoutTarget
Gets or sets a value indicating whether the layout target is located inside the current control.
Public property IsHMode
false value Specifies that the Height shall be interpreted as the Bottom of the chart element..
Public property IsVerticalLegend
Indicates whether if vertical legend.
Public property IsWMode
false value Specifies that the Width shall be interpreted as the Right of the chart element..
Public property IsXMode
true value Specifies that the X shall be interpreted as the Left of the chart element..
Public property IsYMode
true value Specifies that the Y shall be interpreted as the Top of the chart element..
Public property LegendEntries
Represents legend entries collection. Read only.
Public property Parent
Reference to Parent object. Read-only.
(Inherited from XlsObject .)
Public property Position
Legend position type.
Protected property ReferenceCount
Get quantity of instance references.
(Inherited from XlsObject .)
Public property TextArea
Return text area of legend.
Public property Width
X-size. 1/4000 of chart plot. IsWMode Shall set to True
Public property X
X-position of upper-left corner. 1/4000 of chart plot. IsXMode Shall set to True
Public property Y
Y-position of upper-left corner. 1/4000 of chart plot. IsYMode Shall set to True
Top
Methods
Name Description
Protected method AddReference
Increase the quantity of reference. User must use this method when new wrapper on object is created or reference on object stored.
(Inherited from XlsObject .)
Protected method CheckDisposed
Checks whether object was disposed and throws exception if it was.
(Inherited from XlsObject .)
Public method Clear
Clears chart legend.
Public method Clone
Clones current object.
Public method Delete
Deletes chart legend.
Public method Dispose
Dispose object and free resources.
(Inherited from XlsObject .)
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize
Destructor. Call dispose method of current object.
(Inherited from XlsObject .)
Protected method FindParent(Type)
This method is used to find parent with specific type.
(Inherited from XlsObject .)
Protected method FindParent( Type )
Find parent of object.
(Inherited from XlsObject .)
Protected method FindParent(Type, Boolean)
This method is used to find parent with specific type.
(Inherited from XlsObject .)
Protected method FindParents
Finds parent objects.
(Inherited from XlsObject .)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Protected method OnDispose
Method which can be overriden by users to take any specific actions when object is disposed.
(Inherited from XlsObject .)
Protected method ReleaseReference
Decrease quantity of Reference. User must call this method when freeing resources.
(Inherited from XlsObject .)
Protected method SetParent
Sets parent of the object.
(Inherited from XlsObject .)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Top
Fields
Name Description
Protected field m_bIsDisposed
Flag which indicates if the object was disposed or not.
(Inherited from XlsObject .)
Top
See Also