NavigationEventArgs.preventDefault Property

Parent Object: NavigationEventArgs
Defined in namespace "adsk::core" and the header file is <Core/UserInterface/NavigationEventArgs.h>

Description

If True, the default handling of this navigation event will not continue. If False, the default value, the default handling of this navigation event will continue.

Syntax

"navigationEventArgs_var" is a variable referencing a NavigationEventArgs object.

# Get the value of the property.
propertyValue = navigationEventArgs_var.preventDefault

# Set the value of the property.
navigationEventArgs_var.preventDefault = propertyValue
"navigationEventArgs_var" is a variable referencing a NavigationEventArgs object.
#include <Core/UserInterface/NavigationEventArgs.h>

// Get the value of the property.
boolean propertyValue = navigationEventArgs_var->preventDefault();

// Set the value of the property, where value_var is a boolean.
bool returnValue = navigationEventArgs_var->preventDefault(value_var);

Property Value

This is a read/write property whose value is a boolean.

Version

Introduced in version March 2021