Desktop.ActiveLayout

Introduced

v4.0

Description

Returns/sets the current active Layout object.

C# Syntax

// get accessor
Layout rtn = Desktop.ActiveLayout;
// set accessor
Desktop.ActiveLayout = Layout;

Examples

JScript Example

// Change the active layout
var desktop = Application.Desktop;
var layout = desktop.Layouts("Compositing");
desktop.ActiveLayout = layout;
Application.LogMessage( desktop.ActiveLayout.Name );
// Expected result
//INFO : "Compositing"