GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / FindMouseTool Method / FindMouseTool(Type,Boolean) Method
true if an instances of subclass of tooltype is acceptable
In This Topic
    FindMouseTool(Type,Boolean) Method
    In This Topic
    Find one of the tools used by this view that is an instance of a given tool type or of a subclass of that type.
    Syntax
    public virtual IGoTool FindMouseTool( 
       Type tooltype,
       bool subclass
    )

    Parameters

    tooltype
    subclass
    true if an instances of subclass of tooltype is acceptable

    Return Value

    null if no mouse tool's type is the same or is a subclass of tooltype
    Remarks
    This is most useful when you want to modify one of the standard tools, typically by setting one of its properties. This method searches all of the lists of mode-less tools: MouseDownTools, MouseMoveTools, MouseUpTools. For examples, see FindMouseTool(Type).
    See Also