Change Link

Hi!

I installed GoDiagram WinForms 4.1.0 - Net4.0, and I would like to know how to set arrow Link as StrokeDashArray ?

[Serializable]
public class GraphLink : GoLabeledLink
{
public GraphLink()
{
this.Orthogonal = true;
this.Style = GoStrokeStyle.RoundedLine;
this.ToArrow = true;
}

    public String Text
    {  // null value means no FromLabel
        get
        {
            GoText lab = this.FromLabel as GoText;
            if (lab != null)
                return lab.Text;
            else
                return null;
        }
        set
        {
            if (value == null)
            {
                this.FromLabel = null;
            }
            else
            {
                GoText lab = this.FromLabel as GoText;
                if (lab == null)
                {
                    lab = new GoText();
                    lab.Selectable = false;
                    lab.Editable = true;
                    this.FromLabel = lab;
                }
                lab.Text = value;
            }
        }
    }
}

I may be missing something, but StrokeDashArray seems to be a WPF thing, not a WinForms thing.



For WinForms, you can set Pen.DashPattern… like this:



Pen p = new Pen(Color.Blue);

p.DashPattern = new float[] { 4.0F, 2.0F, 1.0F, 3.0F };

this.Pen = p;

Sorry, StrokeDashArray is WPF…
Now, I will use your example, that is perfect! Thanks!!