/// <summary> /// 获取图形填充颜色 /// </summary> /// <returns></returns> private SolidColorBrush GetFillColor() { if (AnnChart is ShapeAnnotation shapeAnn) { return(ChartCommonMethod.ToSolidColor(shapeAnn.Fill)); } else { return(Brushes.Transparent); } }
/// <summary> /// 获取图形线条颜色 /// </summary> /// <returns></returns> private SolidColorBrush GetBorderColor() { if (AnnChart is ShapeAnnotation shapeAnn) { return(ChartCommonMethod.ToSolidColor(shapeAnn.Stroke)); } else { return(Brushes.Black); } }