Table of Contents

Method AddDropDownOption

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

AddDropDownOption(string)

Adds an entry to a drop-down list.

public void AddDropDownOption(string option)

Parameters

option string

The entry to add.

Remarks

Only intended to be used when Type is set to UIBlockType.DropDown.

AddDropDownOption(string, string)

Adds an entry to a drop-down list.

public void AddDropDownOption(string rawValue, string displayValue)

Parameters

rawValue string

The raw value.

displayValue string

The display value.

Examples

UIBlockDefinition blockItem = new UIBlockDefinition();

blockItem.Type = UIBlockType.DropDown;

blockItem.AddDropDownOption("option_a","First option");
blockItem.AddDropDownOption("option_b","Second option");

uibDialogBox1.AppendBlock(blockItem);

Remarks

Only intended to be used when Type is set to UIBlockType.DropDown.