Extensions 2Add Drop Down Method
Adds a DropDown with selectable items
Definition
Namespace: DWSIM.ExtensionMethods.Eto
Assembly: DWSIM.ExtensionMethods.Eto (in DWSIM.ExtensionMethods.Eto.dll) Version: 10.0.0.0
Assembly: DWSIM.ExtensionMethods.Eto (in DWSIM.ExtensionMethods.Eto.dll) Version: 10.0.0.0
C#
public static DropDown AddDropDown(
DynamicLayout container,
string text,
List<string> options,
int selected,
Action<DropDown, EventArgs> selectedindexchangedhandler = null
)VB
Public Shared Function AddDropDown (
container As DynamicLayout,
text As String,
options As List(Of String),
selected As Integer,
Optional selectedindexchangedhandler As Action(Of DropDown, EventArgs) = Nothing
) As DropDownParameters
- container DynamicLayout
- Layout container
- text String
- Text (description)
- options ListString
- Selectable items
- selected Int32
- Index of the currently selected item (zero-based)
- selectedindexchangedhandler ActionDropDown, EventArgs (Optional)
- Handler for the SelectedIndexChanged event.