Defines the layout structure and content to be applied within
             a Page.
             
            Inheritance Hierarchy
              Spotfire.Dxp.Application.LayoutLayoutDefinition
Namespace: Spotfire.Dxp.Application.Layout
Assembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 23.18.9504.3877 (23.18.9504.3877)
Syntax
C#
public sealed class LayoutDefinition
The LayoutDefinition type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| LayoutDefinition | Initializes a new instance of the
            LayoutDefinition class.
              | 
Methods
| Name | Description | |
|---|---|---|
| Add | Adds the specified Visual to the current
            section. BeginStackedSection or
            BeginSideBySideSection should be called prior to
            this.
              | |
| BeginSideBySideSection | Creates a side-by-side (vertical) section that will be
            used for subsequent calls to Add(Visual). The section
            should be ended by calling EndSection.
              | |
| BeginStackedSection | Creates a stacked (horizontal) section that will be used
            for subsequent calls to Add(Visual). The section
            should be closed by calling EndSection. 
              | |
| EndSection | Ends the current section. All sections must be ended.
              | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.  (Inherited from Object.) | |
| GetType | Gets the Type of the current instance.  (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object.  (Inherited from Object.) | 
Remarks
Examples
C#
public void TwoLevelsStartingHorizontally() { // + - + - + - + // | 1 | 2 | 3 | // + - + - + - + // | 4 | // + - - - - - + Visual v1 = new VisualMock(); Visual v2 = new VisualMock(); Visual v3 = new VisualMock(); Visual v4 = new VisualMock(); LayoutDefinition ld = new LayoutDefinition(); ld.BeginStackedSection(); ld.BeginSideBySideSection(); ld.Add(v1); ld.Add(v2); ld.Add(v3); ld.EndSection(); ld.Add(v4); ld.EndSection(); }
public void ThreeLevelsStartingVertically() { // + - - - + - + - + // | | 2 | // | + - + - + // | 1 | 3 | // | + - + - + // | | 4 | 5 | // + - - - + - + - + Visual v1 = new VisualMock(); Visual v2 = new VisualMock(); Visual v3 = new VisualMock(); Visual v4 = new VisualMock(); Visual v5 = new VisualMock(); LayoutDefinition ld = new LayoutDefinition(); ld.BeginSideBySideSection(); ld.Add(v1); ld.BeginStackedSection(); ld.Add(v2); ld.Add(v3); ld.BeginSideBySideSection(); ld.Add(v4); ld.Add(v5); ld.EndSection(); ld.EndSection(); ld.EndSection(); }
Version Information
See Also