DataLabel Class

Represents a series labels.
Inheritance Hierarchy
SystemObject
  Aspose.Slides.ChartsDataLabel

Namespace:  Aspose.Slides.Charts
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 22.1.0.0 (22.1)
Syntax
public class DataLabel : IDataLabel, ILayoutable, 
	IChartComponent, ISlideComponent, IPresentationComponent, IOverridableText, IFormattedTextContainer, 
	IActualLayout

The DataLabel type exposes the following members.

Constructors
  NameDescription
Public methodDataLabel
Creates a new instance of DataLabel class.
Properties
  NameDescription
Public propertyActualHeight
Specifies actual height of the chart element. Call method IChart.ValidateChartLayout() before to get actual values. Read Single.
Public propertyActualWidth
Specifies actual width of the chart element. Call method IChart.ValidateChartLayout() before to get actual values. Read Single.
Public propertyActualX
Specifies actual x location (left) of the chart element relative to the left top corner of the chart. Call method IChart.ValidateChartLayout() before to get actual values. Read Single.
Public propertyActualY
Specifies actual top of the chart element relative to the left top corner of the chart. Call method IChart.ValidateChartLayout() before to get actual values. Read Single.
Public propertyBottom
Bottom. Read-only Single.
Public propertyChart
Returns the parent chart. Read-only IChart.
Public propertyDataLabelFormat
Returns data label format. Read-only IDataLabelFormat.
Public propertyHeight
Returns or sets the height of a title as a fraction of the height of the chart. Read/write Single.
Public propertyIsVisible
False means that data label is not visible (and so all Show*-flags (ShowValue, ...) are false). Read-only Boolean.
Public propertyRight
Right. Read-only Single.
Public propertyTextFormat
Returns text format. Read-only IChartTextFormat.
Public propertyTextFrameForOverriding
Can contain a rich formatted text. If this property is not null then this formatted text value overrides auto-generated text of data label. Auto-generated text of data label means text that is managed by ShowSeriesName, ShowValue, ... properties and is formatted with the TextFormatManager.TextFormat property. Read-only ITextFrame.
Public propertyValueFromCell
Gets or sets workbook data cell. Applied if IDataLabelFormat.ShowLabelValueFromCell property equals true.
Public propertyWidth
Returns or sets the width of a title as a fraction of the width of the chart. Read/write Single.
Public propertyX
Returns or sets the x coordinate of a title as a fraction of the width of the chart. Read/write Single.
Public propertyY
Returns or sets the y coordinate of a title as a fraction of the height of the chart. Read/write Single.
Methods
  NameDescription
Public methodAddTextFrameForOverriding
Initialize TextFrameForOverriding with the text in paramener "text". If TextFrameForOverriding is already initialized then simply changes its text.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetActualLabelText
Returns actual label text based on DataLabelFormat settings or TextFrameForOverriding.Text value.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHide
Make data label hidden by setting all Show*-flags (ShowValue, ...) to false state. IsVisible will be false after this.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also