Search Results for

    Show / Hide Table of Contents

    TDataLabel Class

    Represents one data label on the chart.

    Syntax

    Namespace: FlexCel.Core

    public class TDataLabel: ICloneable

    Methods

    Name Description
    Clone Returns a deep copy of the object.

    Properties

    Name Description
    PositionXls Position of the label, assuming margins in the plot area. This value is only set in xls files, and has different meanings depending on the kind of label:

    In titles, x and y are the offset from the chart position in units of 1/4000 of the position.


    In axis titles, x means offset perpendicular to the axis, in units of 1/1000 of the plot-area bounding box, and y means offset parallel to the axis, in units of 1/1000 of the axis length.


    In data labels for pie charts, x is the offset angle from the default, in degrees clockwise, while y is the radial offset, in units of 1/1000 of the pie radius....[more]
    PositionZeroBased Coordinates in percent of the chart area. Different from PositionXls this value has no margin attached.
    In old xls files, this value might not be set. If set, it should always be used instead of PositionXls.
    Note that for titles and axis titles the height and width is always automatic. For data labels in xlsx files, you can specify a size.
    TextOptions Formatting options for this label.
    LabelOptions Data options for the label.
    Frame Background for the label, if there is one. Null otherwise.
    LabelValues A list with the actual values for the label, evaluated from the formula at LabelDefinition IMPORTANT NOTE: The values here only are valid if LabelOptions indicates a manual DataType.
    The results can contain TDrawingRich​Strings.​
    LabelDefinition The formula defining the values on this label. You can access the actual values of the labels with LabelValues.
    LinkedTo Defines to which object this label is linked.
    SeriesIndex Series number for the series this label displays. This value only has meaning if LinkedTo is TLinkOptions.​Data​Label
    DataPointIndex Point index of the point this label displays. This value only has meaning if LinkedTo is TLinkOptions.​Data​Label and the label is for only one point. When the label is for the whole series, DataPointIndex is -1.
    NumberFormat Numeric format for this label.
    NumberFormat​Linked​ToSource True if the format for the numbers on this label is linked to the format in the cells in the spreadsheet.
    LeaderLines True if there are lines from the slices to the labels. This value only has effect in the default label for the series, since you can't individually set leader lines.
    LeaderLineStyle Line style for the leader lines, only has meaning if LeaderLines is true.
    EnclosingRect Calculated rectangle enclosing the label at zero rotation. The default value is empty unless you manually set it.
    EnclosingRect​Rotation The calculated angle in degrees to rotate EnclosingRect. The default value is empty unless you manually set it.
    In This Article
    Back to top FlexCel Studio for the .NET Framework v7.24.0.0
    © 2002 - 2025 tmssoftware.com