WebFormMenu
Allows for easy creation of HTML drop down controls.
Constructors
|
Constructor
|
Initializes a new instance of the WebFormMenu class.
Arguments:
(void)
(Name, Size, SelectMultiple)
|
Methods
|
AddAttribute
|
Adds an attribute to the 'select' tag portion of the drop down.
|
|
AddOption
|
Adds an 'option' tag to this instance.
Arguments:
(Label, Value)
(Label, Value, Custom)
|
|
AddOptionGroup
|
Adds an group option tag to the list menu.
|
|
AddSelectedValue
|
Adds a the selected attribute to the 'option' tags that have the same value as the specified string argument.
|
|
GetOptionTags
|
Returns markup representing the 'option' tags for this instance.
|
|
ToString
|
Returns a string representation of the drop down.
|
Properties
|
Attributes
|
Stores all attribute names and values for this instance. |
|
Name
|
Gets and sets the value used for the 'name' attribute for this instance. |
|
Options
|
Stores all the option tags for this instance. |
|
SelectedValues
|
Gets and Sets a StringCollection containing all the selected option values. |
|
SelectMultiple
|
Gets and sets a boolean value that represents whether the 'multiple' attribute will be present. |
|
Size
|
Gets and sets the value used for the 'size' attribute for this instance. |
|