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

This commit is contained in:
monitor1394
2020-03-09 22:10:48 +08:00
parent 1cf107f47b
commit 9118fdb660
8 changed files with 17803 additions and 17758 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;
}
}
}