FindMouseTool(Type) Method
In This Topic
Find one of the tools used by this view that is an instance of a given tool type.
Syntax
Parameters
- tooltype
Return Value
null if no mouse tool's type is exactly
Example
(myView.FindMouseTool(typeof(GoToolContext)) as GoToolContext).SingleSelection = false;
(myView.FindMouseTool(typeof(GoToolLinkingNew)) as GoToolLinkingNew).ForwardsOnly = true;
GoToolDragging dragtool = FindMouseTool(typeof(GoToolDragging)) as GoToolDragging;
if (dragtool != null) {
... dragtool.ComputeEffectiveSelection(clipsel, false) ...
}
See Also