Palette.snapTo Method

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

Description

Snaps this palette to another palette.

Syntax

"palette_var" is a variable referencing a Palette object.
returnValue = palette_var.snapTo(palette, snapOption)
"palette_var" is a variable referencing a Palette object.

#include <Core/UserInterface/Palette.h>

returnValue = palette_var->snapTo(palette, snapOption);

Return Value

Type Description
boolean Returns true if the palette was successfully snapped to the other palette.

Parameters

Name Type Description
palette Palette Specifies the palette to snap to.
snapOption PaletteSnapOptions Specifies how this palette should be snapped to the other palette.

Version

Introduced in version March 2017