これは、以前に公開された回答に沿って、カスタムの矢印記号を作成する方法の詳細な図です。
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
});
このコードを実行すると、次の出力が得られます。
