Class CfnDashboard.LayoutConfigurationProperty
The configuration that determines what the type of layout will be used on a sheet.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.QuickSight
Assembly: Amazon.CDK.AWS.QuickSight.dll
Syntax (csharp)
public class LayoutConfigurationProperty : Object, CfnDashboard.ILayoutConfigurationProperty
Syntax (vb)
Public Class LayoutConfigurationProperty
Inherits Object
Implements CfnDashboard.ILayoutConfigurationProperty
Remarks
This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.QuickSight;
var layoutConfigurationProperty = new LayoutConfigurationProperty {
FreeFormLayout = new FreeFormLayoutConfigurationProperty {
Elements = new [] { new FreeFormLayoutElementProperty {
ElementId = "elementId",
ElementType = "elementType",
Height = "height",
Width = "width",
XAxisLocation = "xAxisLocation",
YAxisLocation = "yAxisLocation",
// the properties below are optional
BackgroundStyle = new FreeFormLayoutElementBackgroundStyleProperty {
Color = "color",
Visibility = "visibility"
},
BorderStyle = new FreeFormLayoutElementBorderStyleProperty {
Color = "color",
Visibility = "visibility"
},
LoadingAnimation = new LoadingAnimationProperty {
Visibility = "visibility"
},
RenderingRules = new [] { new SheetElementRenderingRuleProperty {
ConfigurationOverrides = new SheetElementConfigurationOverridesProperty {
Visibility = "visibility"
},
Expression = "expression"
} },
SelectedBorderStyle = new FreeFormLayoutElementBorderStyleProperty {
Color = "color",
Visibility = "visibility"
},
Visibility = "visibility"
} },
// the properties below are optional
CanvasSizeOptions = new FreeFormLayoutCanvasSizeOptionsProperty {
ScreenCanvasSizeOptions = new FreeFormLayoutScreenCanvasSizeOptionsProperty {
OptimizedViewPortWidth = "optimizedViewPortWidth"
}
}
},
GridLayout = new GridLayoutConfigurationProperty {
Elements = new [] { new GridLayoutElementProperty {
ColumnSpan = 123,
ElementId = "elementId",
ElementType = "elementType",
RowSpan = 123,
// the properties below are optional
ColumnIndex = 123,
RowIndex = 123
} },
// the properties below are optional
CanvasSizeOptions = new GridLayoutCanvasSizeOptionsProperty {
ScreenCanvasSizeOptions = new GridLayoutScreenCanvasSizeOptionsProperty {
ResizeOption = "resizeOption",
// the properties below are optional
OptimizedViewPortWidth = "optimizedViewPortWidth"
}
}
},
SectionBasedLayout = new SectionBasedLayoutConfigurationProperty {
BodySections = new [] { new BodySectionConfigurationProperty {
Content = new BodySectionContentProperty {
Layout = new SectionLayoutConfigurationProperty {
FreeFormLayout = new FreeFormSectionLayoutConfigurationProperty {
Elements = new [] { new FreeFormLayoutElementProperty {
ElementId = "elementId",
ElementType = "elementType",
Height = "height",
Width = "width",
XAxisLocation = "xAxisLocation",
YAxisLocation = "yAxisLocation",
// the properties below are optional
BackgroundStyle = new FreeFormLayoutElementBackgroundStyleProperty {
Color = "color",
Visibility = "visibility"
},
BorderStyle = new FreeFormLayoutElementBorderStyleProperty {
Color = "color",
Visibility = "visibility"
},
LoadingAnimation = new LoadingAnimationProperty {
Visibility = "visibility"
},
RenderingRules = new [] { new SheetElementRenderingRuleProperty {
ConfigurationOverrides = new SheetElementConfigurationOverridesProperty {
Visibility = "visibility"
},
Expression = "expression"
} },
SelectedBorderStyle = new FreeFormLayoutElementBorderStyleProperty {
Color = "color",
Visibility = "visibility"
},
Visibility = "visibility"
} }
}
}
},
SectionId = "sectionId",
// the properties below are optional
PageBreakConfiguration = new SectionPageBreakConfigurationProperty {
After = new SectionAfterPageBreakProperty {
Status = "status"
}
},
Style = new SectionStyleProperty {
Height = "height",
Padding = new SpacingProperty {
Bottom = "bottom",
Left = "left",
Right = "right",
Top = "top"
}
}
} },
CanvasSizeOptions = new SectionBasedLayoutCanvasSizeOptionsProperty {
PaperCanvasSizeOptions = new SectionBasedLayoutPaperCanvasSizeOptionsProperty {
PaperMargin = new SpacingProperty {
Bottom = "bottom",
Left = "left",
Right = "right",
Top = "top"
},
PaperOrientation = "paperOrientation",
PaperSize = "paperSize"
}
},
FooterSections = new [] { new HeaderFooterSectionConfigurationProperty {
Layout = new SectionLayoutConfigurationProperty {
FreeFormLayout = new FreeFormSectionLayoutConfigurationProperty {
Elements = new [] { new FreeFormLayoutElementProperty {
ElementId = "elementId",
ElementType = "elementType",
Height = "height",
Width = "width",
XAxisLocation = "xAxisLocation",
YAxisLocation = "yAxisLocation",
// the properties below are optional
BackgroundStyle = new FreeFormLayoutElementBackgroundStyleProperty {
Color = "color",
Visibility = "visibility"
},
BorderStyle = new FreeFormLayoutElementBorderStyleProperty {
Color = "color",
Visibility = "visibility"
},
LoadingAnimation = new LoadingAnimationProperty {
Visibility = "visibility"
},
RenderingRules = new [] { new SheetElementRenderingRuleProperty {
ConfigurationOverrides = new SheetElementConfigurationOverridesProperty {
Visibility = "visibility"
},
Expression = "expression"
} },
SelectedBorderStyle = new FreeFormLayoutElementBorderStyleProperty {
Color = "color",
Visibility = "visibility"
},
Visibility = "visibility"
} }
}
},
SectionId = "sectionId",
// the properties below are optional
Style = new SectionStyleProperty {
Height = "height",
Padding = new SpacingProperty {
Bottom = "bottom",
Left = "left",
Right = "right",
Top = "top"
}
}
} },
HeaderSections = new [] { new HeaderFooterSectionConfigurationProperty {
Layout = new SectionLayoutConfigurationProperty {
FreeFormLayout = new FreeFormSectionLayoutConfigurationProperty {
Elements = new [] { new FreeFormLayoutElementProperty {
ElementId = "elementId",
ElementType = "elementType",
Height = "height",
Width = "width",
XAxisLocation = "xAxisLocation",
YAxisLocation = "yAxisLocation",
// the properties below are optional
BackgroundStyle = new FreeFormLayoutElementBackgroundStyleProperty {
Color = "color",
Visibility = "visibility"
},
BorderStyle = new FreeFormLayoutElementBorderStyleProperty {
Color = "color",
Visibility = "visibility"
},
LoadingAnimation = new LoadingAnimationProperty {
Visibility = "visibility"
},
RenderingRules = new [] { new SheetElementRenderingRuleProperty {
ConfigurationOverrides = new SheetElementConfigurationOverridesProperty {
Visibility = "visibility"
},
Expression = "expression"
} },
SelectedBorderStyle = new FreeFormLayoutElementBorderStyleProperty {
Color = "color",
Visibility = "visibility"
},
Visibility = "visibility"
} }
}
},
SectionId = "sectionId",
// the properties below are optional
Style = new SectionStyleProperty {
Height = "height",
Padding = new SpacingProperty {
Bottom = "bottom",
Left = "left",
Right = "right",
Top = "top"
}
}
} }
}
};
Synopsis
Constructors
LayoutConfigurationProperty() |
Properties
FreeFormLayout | A free-form is optimized for a fixed width and has more control over the exact placement of layout elements. |
GridLayout | A type of layout that can be used on a sheet. |
SectionBasedLayout | A section based layout organizes visuals into multiple sections and has customized header, footer and page break. |
Constructors
LayoutConfigurationProperty()
public LayoutConfigurationProperty()
Properties
FreeFormLayout
A free-form is optimized for a fixed width and has more control over the exact placement of layout elements.
public object FreeFormLayout { get; set; }
Property Value
System.Object
Remarks
GridLayout
A type of layout that can be used on a sheet.
public object GridLayout { get; set; }
Property Value
System.Object
Remarks
In a grid layout, visuals snap to a grid with standard spacing and alignment. Dashboards are displayed as designed, with options to fit to screen or view at actual size. A grid layout can be configured to behave in one of two ways when the viewport is resized: FIXED
or RESPONSIVE
.
SectionBasedLayout
A section based layout organizes visuals into multiple sections and has customized header, footer and page break.
public object SectionBasedLayout { get; set; }
Property Value
System.Object