/// <summary> /// Creates a new pen with the specified <paramref name="color"/> and <paramref name="thickness"/> /// </summary> /// <param name="color">Color for the new pen</param> /// <param name="thickness">Thickness of the new pen</param> /// <param name="generator">Generator to create the pen for</param> public Pen(Color color, float thickness = 1f, Generator generator = null) { handler = generator.CreateShared <IPen> (); ControlObject = handler.Create(color, thickness); }
/// <summary> /// Creates a new pen with the specified <paramref name="color"/> and <paramref name="thickness"/> /// </summary> /// <param name="color">Color for the new pen</param> /// <param name="thickness">Thickness of the new pen</param> /// <param name="generator">Generator to create the pen for</param> public Pen (Color color, float thickness = 1f, Generator generator = null) { handler = generator.CreateShared<IPen> (); ControlObject = handler.Create (color, thickness); }