Nevron Open Vision Documentation
Nevron.Nov.Diagram.DrawingTools Namespace / NDragHandleTool Class / CanActivate Method / CanActivate(NMouseButtonEventArgs) Method


In This Topic
    CanActivate(NMouseButtonEventArgs) Method
    In This Topic
    Determines whether the tool can activate
    Syntax
    'Declaration
     
    
    Protected Overloads Overrides Function CanActivate( _
       ByVal args As NMouseButtonEventArgs _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As NDragHandleTool
    Dim args As NMouseButtonEventArgs
    Dim value As System.Boolean
     
    value = instance.CanActivate(args)
    protected override System.bool CanActivate( 
       NMouseButtonEventArgs args
    )

    Parameters

    args

    Return Value

    true if the tool can activate, otherwise false
    Remarks
    Overriden to return false if the mouse is not over a handle, or the handle cannot be dragged
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also