Constructor Margin
- Namespace
- Skyline.DataMiner.Utils.InteractiveAutomationScript
- Assembly
- Skyline.DataMiner.Utils.InteractiveAutomationScriptToolkit.dll
Margin(int, int, int, int)
Initializes a new instance of the Margin class.
public Margin(int left, int top, int right, int bottom)
Parameters
left
intAmount of margin on the left-hand side of the widget in pixels.
top
intAmount of margin at the top of the widget in pixels.
right
intAmount of margin on the right-hand side of the widget in pixels.
bottom
intAmount of margin at the bottom of the widget in pixels.
Margin()
Initializes a new instance of the Margin class. A margin is by default 3 pixels wide.
public Margin()
Margin(string)
Initializes a new instance of the Margin class based on a string. This string should have the following syntax: left;top;right;bottom.
public Margin(string margin)
Parameters
margin
stringMargin in string format.
Exceptions
- ArgumentException
If the string does not match the predefined syntax, or if any of the margins is not a number.