Toolbars.itemById Method

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

Description

Returns the Toolbar of the specified ID.

Syntax

"toolbars_var" is a variable referencing a Toolbars object.
returnValue = toolbars_var.itemById(id)
"toolbars_var" is a variable referencing a Toolbars object.

#include <Core/UserInterface/Toolbars.h>

returnValue = toolbars_var->itemById(id);

Return Value

Type Description
Toolbar Returns the toolbar with the specified ID or null if there's not a toolbar with the specified ID.

Parameters

Name Type Description
id string The Id of the toolbar to return.

Version

Introduced in version August 2014