ShowLabelValueFromCell
IDataLabelFormat.ShowLabelValueFromCell 属性
表示指定图表的数据标签单元格值显示行为。True 显示单元格值。False 隐藏。可读/可写布尔值。
public bool ShowLabelValueFromCell { get; set; }
备注
如果此 DataLabelFormat 对象的父级是数据标签的 DataLabelCollection 集合,则此属性获取或设置 DataLabelCollection 集合中新数据标签的 ShowLabelValueFromCell 属性的默认值。设置此属性的值也会将此值设置为 DataLabelCollection 集合中所有数据标签的 ShowLabelValueFromCell 属性(即 “DataLabels.DefaultDataLabelFormat.ShowLabelValueFromCell = val;” 会导致所有 DataLabels[i].ShowLabelValueFromCell 等于 val)。