Assembly: OptimaJet.Workflow.Core

Class DropdownValue

OptimaJet.Workflow.Core.Model.DropdownValue

Represents a selectable option for a ParameterType.Dropdown or ParameterType.MultiSelect parameter.

public class DropdownValue

Constructors

public DropdownValue() #
Initializes a new DropdownValue for property-based initialization.
public DropdownValue(KeyValuePair<string, string> pair) #
Initializes a new DropdownValue from a KeyValuePair<TKey, TValue>.

Parameters

Name
Type
Description
pair
KeyValuePair<String, String>
The pair whose key initializes DropdownValue.Name and whose value initializes DropdownValue.Value.
public DropdownValue(string name) #
Initializes a new DropdownValue whose name and value are identical.

Parameters

Name
Type
Description
name
String
The option label and parameter value assigned to DropdownValue.Name and DropdownValue.Value, respectively.
public DropdownValue(string name, string value) #
Initializes a new DropdownValue with the specified display name and parameter value.

Parameters

Name
Type
Description
name
String
The option label stored in DropdownValue.Name.
value
String
The parameter value stored in DropdownValue.Value.

Properties

public string Name { get; set; } #
Gets or sets the option label displayed in the parameter editor.
public string Value { get; set; } #
Gets or sets the parameter value associated with the option.

Methods

public DropdownValue Clone() #
Creates a shallow copy of this option.

Returns

Type
Description
DropdownValue