增加BarChart可通过ItemStyle配置边框的支持

This commit is contained in:
monitor1394
2020-03-09 22:10:48 +08:00
parent e595034833
commit d010c9d986
7 changed files with 95 additions and 50 deletions

View File

@@ -125,5 +125,19 @@ namespace XCharts
get { return m_Opacity; }
set { if (PropertyUtility.SetStruct(ref m_Opacity, value)) SetVerticesDirty(); }
}
/// <summary>
/// 实际边框宽。边框不显示时为0。
/// </summary>
public float runtimeBorderWidth { get { return NeedShowBorder() ? borderWidth : 0; } }
/// <summary>
/// 是否需要显示边框。
/// </summary>
public bool NeedShowBorder()
{
return borderWidth != 0 && borderColor != Color.clear;
}
}
}