GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / Tool Property
In This Topic
    Tool Property
    In This Topic
    Gets or sets the current tool being used by this view.
    Syntax
    [Browsable(false)]
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
    public virtual IGoTool Tool {get; set;}
    Remarks

    As standard input events occur, the event args information is canonicalized into an instance of GoInputEventArgs and then the current Tool's appropriate method is called.

    Setting this property to null results in setting it to the value of DefaultTool. A tool that has finished will probably need to reset this property to the DefaultTool, typically by calling the GoTool.StopTool method.

    If the tool is explicitly set as a result of some user-interface command, the tool is being used in a "modal" fashion.

    If the tool is set as a result of the GoToolManager searching through the lists of tools to be started as a result of a mouse down, a mouse move, or a mouse up, then the tool is being used in a "mode-less" fashion.

    See Also