Viewport.width Property

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

Description

Returns the width of the viewport in pixels.

Syntax

"viewport_var" is a variable referencing a Viewport object.

# Get the value of the property.
propertyValue = viewport_var.width
"viewport_var" is a variable referencing a Viewport object.
#include <Core/Application/Viewport.h>

// Get the value of the property.
integer propertyValue = viewport_var->width();

Property Value

This is a read only property whose value is an integer.

Version

Introduced in version August 2014