Method AddWidget
- Namespace
- Skyline.DataMiner.Utils.InteractiveAutomationScript
- Assembly
- Skyline.DataMiner.Utils.InteractiveAutomationScriptToolkit.dll
AddWidget(Widget, IWidgetLayout)
Adds a widget to the dialog.
public Dialog AddWidget(Widget widget, IWidgetLayout widgetLayout)Parameters
- widgetWidget
- Widget to add to the dialog. 
- widgetLayoutIWidgetLayout
- Location of the widget on the grid layout. 
Returns
- Dialog
- The dialog. 
Exceptions
- ArgumentNullException
- When the widget is null. 
- ArgumentException
- When the widget has already been added to the dialog. 
AddWidget(Widget, int, int, HorizontalAlignment, VerticalAlignment)
Adds a widget to the dialog.
public Dialog AddWidget(Widget widget, int row, int column, HorizontalAlignment horizontalAlignment = HorizontalAlignment.Left, VerticalAlignment verticalAlignment = VerticalAlignment.Center)Parameters
- widgetWidget
- Widget to add to the dialog. 
- rowint
- Row location of widget on the grid. 
- columnint
- Column location of the widget on the grid. 
- horizontalAlignmentHorizontalAlignment
- Horizontal alignment of the widget. 
- verticalAlignmentVerticalAlignment
- Vertical alignment of the widget. 
Returns
- Dialog
- The dialog. 
Exceptions
- ArgumentNullException
- When the widget is null. 
- ArgumentException
- When the widget has already been added to the dialog. 
AddWidget(Widget, int, int, int, int, HorizontalAlignment, VerticalAlignment)
Adds a widget to the dialog.
public Dialog AddWidget(Widget widget, int fromRow, int fromColumn, int rowSpan, int colSpan, HorizontalAlignment horizontalAlignment = HorizontalAlignment.Left, VerticalAlignment verticalAlignment = VerticalAlignment.Center)Parameters
- widgetWidget
- Widget to add to the dialog. 
- fromRowint
- Row location of widget on the grid. 
- fromColumnint
- Column location of the widget on the grid. 
- rowSpanint
- Number of rows the widget will use. 
- colSpanint
- Number of columns the widget will use. 
- horizontalAlignmentHorizontalAlignment
- Horizontal alignment of the widget. 
- verticalAlignmentVerticalAlignment
- Vertical alignment of the widget. 
Returns
- Dialog
- The dialog. 
Exceptions
- ArgumentNullException
- When the widget is null. 
- ArgumentException
- When the widget has already been added to the dialog.