TextBoxCommandInput.text Property

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

Description

Gets and sets the text in the text box. This returns the string as seen in the text box with any formatting stripped out.

Syntax

"textBoxCommandInput_var" is a variable referencing a TextBoxCommandInput object.

# Get the value of the property.
propertyValue = textBoxCommandInput_var.text

# Set the value of the property.
textBoxCommandInput_var.text = propertyValue
"textBoxCommandInput_var" is a variable referencing a TextBoxCommandInput object.
#include <Core/UserInterface/TextBoxCommandInput.h>

// Get the value of the property.
string propertyValue = textBoxCommandInput_var->text();

// Set the value of the property, where value_var is a string.
bool returnValue = textBoxCommandInput_var->text(value_var);

Property Value

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

Version

Introduced in version June 2015