DataLabel Class

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

Namespace:  Aspose.Slides.Charts
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 20.3.0.0 (20.3)
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 (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetActualLabelText
Returns actual label text based on DataLabelFormat settings or TextFrameForOverriding.Text value.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (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 (Inherited from Object.)
Public methodToString (Inherited from Object.)
See Also