LeaderLinesFormat

IDataLabelCollection.LeaderLinesFormat 属性

表示数据标签的引导线格式。只读 IChartLinesFormat

public IChartLinesFormat LeaderLinesFormat { get; }

示例

示例:

[C#]
using (Presentation pres = new Presentation("pres.pptx"))
{
    IChart chart = (IChart) pres.Slides[0].Shapes[0];
    IChartSeriesCollection series = chart.ChartData.Series;
    IDataLabelCollection labels = series[0].Labels;

    labels.LeaderLinesFormat.Line.FillFormat.FillType = FillType.Solid;
    labels.LeaderLinesFormat.Line.FillFormat.SolidFillColor.Color = Color.FromArgb(255, 255, 0, 0);
}

另请参见