Method AddWidget
- Namespace
- Skyline.DataMiner.Utils.InteractiveAutomationScript
- Assembly
- Skyline.DataMiner.Utils.InteractiveAutomationScriptToolkit.dll
AddWidget(Widget, IWidgetLayout)
Adds a widget to the section.
public Section AddWidget(Widget widget, IWidgetLayout widgetLayout)
Parameters
widget
WidgetWidget to add to the Section.
widgetLayout
IWidgetLayoutLocation of the widget in the grid layout.
Returns
- Section
The dialog.
Exceptions
- ArgumentNullException
When the widget is null.
- ArgumentException
When the widget has already been added to the Section.
AddWidget(Widget, int, int, HorizontalAlignment, VerticalAlignment)
Adds a widget to the section.
public Section AddWidget(Widget widget, int row, int column, HorizontalAlignment horizontalAlignment = HorizontalAlignment.Left, VerticalAlignment verticalAlignment = VerticalAlignment.Center)
Parameters
widget
WidgetWidget to add to the section.
row
intRow location of the widget on the grid.
column
intColumn location of the widget on the grid.
horizontalAlignment
HorizontalAlignmentHorizontal alignment of the widget.
verticalAlignment
VerticalAlignmentVertical alignment of the widget.
Returns
- Section
The updated section.
Exceptions
- ArgumentNullException
When the widget is null.
- ArgumentException
When the location is out of bounds of the grid.
- ArgumentException
When the widget has already been added to the dialog.
AddWidget(Widget, int, int, int, int, HorizontalAlignment, VerticalAlignment)
Adds a widget to the section.
public Section AddWidget(Widget widget, int fromRow, int fromColumn, int rowSpan, int colSpan, HorizontalAlignment horizontalAlignment = HorizontalAlignment.Left, VerticalAlignment verticalAlignment = VerticalAlignment.Center)
Parameters
widget
WidgetWidget to add to the section.
fromRow
intRow location of the widget on the grid.
fromColumn
intColumn location of the widget on the grid.
rowSpan
intNumber of rows the widget will use.
colSpan
intNumber of columns the widget will use.
horizontalAlignment
HorizontalAlignmentHorizontal alignment of the widget.
verticalAlignment
VerticalAlignmentVertical alignment of the widget.
Returns
- Section
The updated section.
Exceptions
- ArgumentNullException
When the widget is null.
- ArgumentException
When the location is out of bounds of the grid.
- ArgumentException
When the widget has already been added to the dialog.