Algosim documentation: ApplyLayout

ApplyLayout

Applies an Algosim IDE layout preset.

Syntax

Description

If layout is the name of an Algosim layout preset, such as “Standard IDE”, “Full IDE”, or “Console (only)”, then ApplyLayout(layout) applies this preset.

If fn is the fully-qualified path of an Algosim layout preset XML file (*.as-preset), then ApplyLayout(fn) reads this file and applies its layout.

If xml is a textual representation of an Algosim layout preset XML file, starting with either the XML declaration ("<?xml>") or the root element ("<layout>"), then ApplyPreset(xml) applies this layout.

The function returns success if the preset was successfully applied; otherwise, the function returns a failure.

Examples

ApplyLayout("Full IDE")
success
ApplyLayout("D:\My favourite layout.as-layout");
success
ApplyLayout("

  
    
    
  

")
success

Close all panels:

ApplyLayout("<layout/>")
success

See also