以下是如何根据先前发布的答案创建自定义向下箭头符号的详细说明:
var curve = zgc.GraphPane.AddCurve(null, new[] { 2.1, 2.6, 2.8 }, new[] { 1.8, 1.3, 1.1 }, Color.Blue);
curve.Symbol = new Symbol(SymbolType.UserDefined, Color.Red);
curve.Symbol.UserSymbol = new GraphicsPath(
new[]
{
new PointF(-0.6f, -0.6f), new PointF(-0.6f, 0.6f), new PointF(-1.0f, 0.6f), new PointF(0f, 1.6f),
new PointF(1.0f, 0.6f), new PointF(0.6f, 0.6f), new PointF(0.6f, -0.6f),
new PointF(-0.6f, -0.6f)
},
new[]
{
(byte)PathPointType.Start, (byte)PathPointType.Line, (byte)PathPointType.Line,
(byte)PathPointType.Line, (byte)PathPointType.Line, (byte)PathPointType.Line,
(byte)PathPointType.Line, (byte)PathPointType.Line
});
运行此代码将产生以下输出: