GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoToolCreating Class
Members Example
In This Topic
    GoToolCreating Class
    In This Topic
    This tool allows the user to add a copy of an object to the document by dragging in the background where and how large it should be.
    Syntax
    [Serializable()]
    public class GoToolCreating : GoTool, IGoTool  
    Example
    For modeless use, you would typically create this tool when initializing a GoView: For modal use, you might create this tool in a command invoked from a menu or toolbar button or keyboard event handler:
    GoToolCreating ctool = new GoToolCreating(goView1);
    GoPolygon tri = new GoPolygon();
    tri.BrushColor = Color.LightBlue;
    tri.AddPoint(5, 0);
    tri.AddPoint(0, 10);
    tri.AddPoint(10, 10);
    ctool.Prototype = tri;
    goView1.ReplaceMouseTool(typeof(GoToolRubberBanding), ctool);
    GoToolCreating ctool = new GoToolCreating(goView1);
    GoPolygon tri = new GoPolygon();
    tri.BrushColor = Color.LightBlue;
    tri.AddPoint(5, 0);
    tri.AddPoint(0, 10);
    tri.AddPoint(10, 10);
    ctool.Prototype = tri;
    ctool.Modal = true;
    ctool.OneShot = false;
    goView1.Tool = ctool;
    See Also