Click or drag to resize

ChartDataLabels Class

Represents the data labels for a chart, which can include options for formatting and displaying the data associated with each data point.
Inheritance Hierarchy
System Object
Spire.Xls.Core.Spreadsheet XlsObject
Spire.Xls.Core.Spreadsheet.Charts XlsChartDataLabels
Spire.Xls.Charts ChartDataLabels

Namespace: Spire.Xls.Charts
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public class ChartDataLabels : XlsChartDataLabels

The ChartDataLabels type exposes the following members.

Properties
Name Description
Public property BackgroundMode
Display mode of the background.
(Inherited from XlsChartDataLabels .)
Public property Color
Gets or sets color.
(Inherited from XlsChartDataLabels .)
Public property Delimiter
Delimeter.
(Inherited from XlsChartDataLabels .)
Public property Font Obsolete.
Returns FontImpl for current font. Read-only.
(Inherited from XlsChartDataLabels .)
Public property FontName
Returns or sets the font name. Read / write string.
(Inherited from XlsChartDataLabels .)
Public property Format
Gets data format. Read-only.
Public property FrameFormat
Return frame format. Read-only.
(Inherited from XlsChartDataLabels .)
Public property HasBubbleSize
Indicates whether bubble size is in data labels.
(Inherited from XlsChartDataLabels .)
Public property HasCategoryName
Indicates whether category name is in data labels.
(Inherited from XlsChartDataLabels .)
Public property HasFormula
Gets or sets a value indicating whether this instance has formula.
(Inherited from XlsChartDataLabels .)
Public property HasLegendKey
Indicates whether legend key is in data labels.
(Inherited from XlsChartDataLabels .)
Public property HasManualLayout
Indicates whether border formatting object was created. Read-only.
(Inherited from XlsChartDataLabels .)
Public property HasPercentage
Indicates whether percentage is in data labels.
(Inherited from XlsChartDataLabels .)
Public property HasSeriesName
Indicates whether series name is in data labels.
(Inherited from XlsChartDataLabels .)
Public property HasValue
Indicates whether value is in data labels.
(Inherited from XlsChartDataLabels .)
Public property HasWedgeCallout
Determines whether the object has a wedge callout.
(Inherited from XlsChartDataLabels .)
Public property Height
Y-size. 1/4000 of chart plot. IsHMode Shall set to True
(Inherited from XlsChartDataLabels .)
Public property Index
Returns font index. Read-only.
(Inherited from XlsChartDataLabels .)
Public property IsAutoColor
Indicates whether color has automatic color. Read-only.
(Inherited from XlsChartDataLabels .)
Public property IsAutoMode
True if background is set to automatic.
(Inherited from XlsChartDataLabels .)
Public property IsBold
True if the font is bold. Read / write Boolean.
(Inherited from XlsChartDataLabels .)
Public property IsHMode
false value Specifies that the Height shall be interpreted as the Bottom of the chart element..
(Inherited from XlsChartDataLabels .)
Public property IsItalic
True if the font style is italic. Read / write Boolean.
(Inherited from XlsChartDataLabels .)
Public property IsResizeShapeToFitText
Gets or sets a value indicating whether the shape should automatically resize to fit the text it contains.
(Inherited from XlsChartDataLabels .)
Public property IsStrikethrough
True if the font is struck through with a horizontal line. Read / write Boolean
(Inherited from XlsChartDataLabels .)
Public property IsSubscript
True if the font is formatted as subscript. False by default. Read / write Boolean.
(Inherited from XlsChartDataLabels .)
Public property IsSuperscript
True if the font is formatted as superscript. False by default. Read/write Boolean
(Inherited from XlsChartDataLabels .)
Public property IsTextWrapped
Gets or sets a value indicating whether the text within the labels should be wrapped.
(Inherited from XlsChartDataLabels .)
Public property IsWMode
false value Specifies that the Width shall be interpreted as the Right of the chart element..
(Inherited from XlsChartDataLabels .)
Public property IsXMode
true value Specifies that the X shall be interpreted as the Left of the chart element..
(Inherited from XlsChartDataLabels .)
Public property IsYMode
true value Specifies that the Y shall be interpreted as the Top of the chart element..
(Inherited from XlsChartDataLabels .)
Public property KnownColor
Returns or sets the primary color of the object.
(Inherited from XlsChartDataLabels .)
Public property NumberFormat
Represents trend line label number format.
(Inherited from XlsChartDataLabels .)
Public property Parent
Reference to Parent object. Read-only.
(Inherited from XlsObject .)
Public property Position
Represents data labels position.
(Inherited from XlsChartDataLabels .)
Protected property ReferenceCount
Get quantity of instance references.
(Inherited from XlsObject .)
Public property ShowLeaderLines
Indicates whether Leader Lines is in data labels.
(Inherited from XlsChartDataLabels .)
Public property Size
Returns or sets the size of the font. Read / write Variant.
(Inherited from XlsChartDataLabels .)
Public property StrikethroughType
Represents the TextArea StrikethroughType
(Inherited from XlsChartDataLabels .)
Public property Text
Gets or sets text.
(Inherited from XlsChartDataLabels .)
Public property TextArea
Gets or sets text area.
Public property TextRotationAngle
Text rotation angle. between -90 and 90.
(Inherited from XlsChartDataLabels .)
Public property Underline
Returns or sets the type of underline applied to the font.
(Inherited from XlsChartDataLabels .)
Public property ValueFromCell
Set Range for value. above Excel 2013
(Inherited from XlsChartDataLabels .)
Public property VerticalAlignment
Returns or sets font vertical alignment.
(Inherited from XlsChartDataLabels .)
Public property Width
X-size. 1/4000 of chart plot. IsWMode Shall set to True
(Inherited from XlsChartDataLabels .)
Public property X
X-position of upper-left corner. 1/4000 of chart plot. IsXMode Shall set to True
(Inherited from XlsChartDataLabels .)
Public property Y
Y-position of upper-left corner. 1/4000 of chart plot. IsYMode Shall set to True
(Inherited from XlsChartDataLabels .)
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 .)
Public method BeginUpdate
This method should be called before several updates to the object will take place.
(Inherited from XlsChartDataLabels .)
Protected method CheckDisposed
Checks whether object was disposed and throws exception if it was.
(Inherited from XlsObject .)
Public method Dispose
Dispose object and free resources.
(Inherited from XlsObject .)
Public method EndUpdate
This method should be called after several updates to the object took place.
(Inherited from XlsChartDataLabels .)
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 GenerateNativeFont
Generates .Net font object corresponding to the current font.
(Inherited from XlsChartDataLabels .)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetThemeColor
Get the theme color.
(Inherited from XlsChartDataLabels .)
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 SetThemeColor
Set the theme color.
(Inherited from XlsChartDataLabels .)
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