Wisej.Web.ComboBox ObjectCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Represents the collection of items in a Wisej.Web.ComboBox control.
public class ObjectCollection : IList, ICollection, IEnumerablePublic Class ObjectCollection
Inherits IList
Implements ICollection, IEnumerable: Returns the number of items in the collection.
: Returns a value indicating whether this collection can be modified.
: Retrieves the item at the specified index within the collection.
Throws:
The index was less than zero; or the index was greater of equal to the count of items in the collection.
Adds an item to the list of items for a .
Returns: . The zero-based index of the item in the collection.
Throws:
The item parameter was null.
Adds a collection of items to the list.
Removes all items from the .
Determines if the specified item is located within the collection.
Returns: . true if the item is located within the collection; otherwise, false.
Throws:
value is null.
Copies the entire collection into an existing array of objects at a specified location within the array.
Returns an enumerator that can be used to iterate through the item collection.
Returns: . A that represents the item collection.
Returns the real index in the collection accounting for the deleted items that have not been committed to the client yet.
Returns: .
Retrieves the index within the collection of the specified item.
Returns: . The zero-based index where the item is located within the collection; otherwise, -1.
Throws:
The value parameter was null.
Inserts an item into the collection at the specified index.
Throws:
The item was null.
The index was less than zero; or the index was greater than the count of items in the collection.
Fires the event.
Removes the specified item from the .
Removes an item from the at the specified index.
Throws:
The index parameter was less than zero, or the index parameter was greater than or equal to the count of items in the collection.
Fired when the collection changes.
item
An object representing the item to add to the collection.
items
Collection of items to add to the list.
value
An object representing the item to locate in the collection.
destination
The object array to copy the collection to.
index
The location in the destination array to copy the collection to.
index
value
An object representing the item to locate in the collection.
index
The zero-based index location where the item is inserted.
item
An object representing the item to insert.
action
One of CollectionChangeAction indicating the reason the collection has changed.
element
The element that was added or removed from the collection, or null.
value
The Object to remove from the list.
index
The index of the item to remove.
Wisej.Web.ComboBox
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Represents a combo box control.
Initializes an instance of ComboBox.
Initializes a new instance of class with specific initial settings.
Initializes a new instance of class with specific initial settings.
Initializes a new instance of class with specific initial settings.
Initializes an instance of with the given datasource, size, location, and action.
Initializes an instance of with the given datasource, size, location, and action.
Initializes an instance of with the given datasource, size, location, and action.
Initializes an instance of with the given datasource, size, location, and action.
: Returns or sets a value indicating that the control can display html in the Text property. (Default: False)
: Returns or sets how automatic completion works for the . (Default: None)
: Returns or sets whether the height of the control is set automatically. (Default: True)
: Returns or sets whether the control modifies the case of characters as they are typed. (Default: Normal)
: Returns the default size for the ComboBox control.
: Returns or sets the maximum height in pixels of the drop-down portion of the . (Default: 400)
Throws:
The specified value is less than one.
: Returns or sets the drop down style of the combo box. (Default: DropDown)
: Returns or sets the maximum width in pixels of the drop-down list of the . When the value is 0, the drop-down list will grow to fit the largest item. (Default: 0)
Throws:
The specified value is less than one.
: Returns or sets whether the combo box is displaying its drop-down portion.
: Enables or disables the browser's context menu. (Default: True)
: Returns or sets whether items are selected incrementally as the user types within a timeout of 1 second. (Default: True)
: Gets or sets the height of the list items in the drop-down list. When the value is -1, uses the value set in the theme. (Default: -1)
Throws:
The assigned value is less than -1; or the assigned value is greater than 500.
: Returns the collection of the items contained in this .
: Provides a label related to the control.
: Returns or sets the localizable label associated with this control. (Default: "")
: Returns or sets whether the items are sent to the client the first time the list is opened and enables the event. (Default: False)
: Returns or sets the number of characters a user can type into the . (Default: 0)
Throws:
The value is less than 0.
: Returns or sets whether the control is read-only. (Default: False)
: Returns or sets the index of the currently selected item.
Throws:
The specified index is less than -1; o the specified index is greater than the number of items in the combo box.
: Returns or sets currently selected item in the .
: Returns or sets the text that is selected in the editable portion of a .
: Returns or sets the number of characters selected in the editable portion of the combo box.
Throws:
The value was less than zero.
: Returns or sets the starting index of text selected in the combo box.
Throws:
The value is less than zero.
: Returns or sets whether the items in the combo box are sorted. (Default: False)
Throws:
An attempt was made to sort a that is attached to a data source.
: Returns or sets whether the text in the is spell checked by the browser. (Default: False)
: Returns or sets the text associated with this control. (Default: "")
: Returns the instance of associated with this control.
: Returns or sets the text to show when the control is empty. (Default: null)
Not used. Kept for compatibility.
Copies the current selection in the text box to the Clipboard.
Creates a new instance of the item collection.
Returns: . A that represents the new item collection.
Moves the current selection in the text box to the Clipboard.
Disposes the control.
Not used. Kept for compatibility.
Returns the index of the first item in the that starts with the specified string.
Returns: . The zero-based index of the first item found; returns -1 if no match is found.
Returns the index of the first item in the beyond the specified index that starts with the specified string. The search is not case sensitive.
Returns: . The zero-based index of the first item found; returns -1 if no match is found, or 0 if the text parameter specifies .
Finds the first item in the combo box that matches the specified string.
Returns: . The zero-based index of the first item found; returns -1 if no match is found, or 0 if the text parameter specifies .
Finds the first item after the specified index that matches the specified string.
Returns: . The zero-based index of the first item found; returns -1 if no match is found, or 0 if the text parameter specifies .
Fires the event.
Fires the event.
Fires the event.
Fires the event.
Fires the event.
Fires the event.
Fires the event.
Fires the event.
Fires the event.
Fires the event.
Fires the event.
Fires the event.
Fires the ToolClick event.
Fires the event.
Fires the event.
Processes the event from the client.
Renders the client component.
Updates the client component using the state information.
Replaces the current selection in the text box with the contents of the Clipboard.
Refreshes the item contained at the specified location.
Reloads all the items from the data source.
Selects a range of text in the editable portion of the .
Selects all the text in the editable portion of the .
Sets the specified bounds of the control.
Sets the object with the specified index in the derived class.
Sets the specified array of objects in a collection in the derived class.
Sorts the items in the .
Fired before the event when is set to or .
The application may implement a different way to select the item when the user types a text and the ComboBox is validated. Set e.Handled to true to override the standard behavior.
Fired when the drop-down portion of a is shown.
Fired when the drop-down portion of the is no longer visible.
Fired when the property has changed.
Fired when the drop-down list is first opened and the property is true.
When is true An application may fill the items at any time prior to the drop-down list being opened, or while processing the or event.
Fired when the value of the property has changed.
Fired when the property has changed.
Fired when the property has changed.
Fired when the selected item has changed and that change is displayed in the .
Fired when the property has changed.
Fired when a is clicked.
onSelectedIndexChanged
Optional handler.
valueMember
Initial .
iconMember
Initial .
onSelectedIndexChanged
Optional handler.
displayMember
Initial .
valueMember
Initial .
iconMember
Initial .
onSelectedIndexChanged
Optional handler.
specified
A combination of the values.
Provides access to the validation events and properties property for controls that support validation.
All wisej components implement this interface.
All wisej controls derived from the class must implement this interface.
Allows an object to serialize itself.
onSelectedIndexChanged
SelectedIndexChanged handler.
label
The initial text to display in the TextBox label.
onSelectedIndexChanged
SelectedIndexChanged handler.
dataSource
Initial DataSource.
displayMember
Initial DisplayMember.
valueMember
Initial ValueMember.
iconMember
location
Initial location.
size
Initial size.
onSelectedIndexChanged
Optional SelectedIndexChanged handler.
location
Initial location.
size
Initial size.
dataSource
Initial DataSource.
displayMember
label
The initial text to display in the TextBox label.
location
Initial location.
size
Initial size.
onSelectedIndexChanged
label
The initial text to display in the TextBox label.
location
Initial location.
size
Initial size.
dataSource
disposing
true when this method is called by the application rather than a finalizer.
text
The String to search for.
text
The String to search for.
startIndex
The zero-based index of the item before the first item to be searched. Set to -1 to search from the beginning of the control.
text
The String to search for.
text
The String to search for.
startIndex
The zero-based index of the item before the first item to be searched. Set to -1 to search from the beginning of the control.
e
A HandledEventArgs that contains the event data.
e
A EventArgs that contains the event data.
e
A EventArgs that contains the event data.
e
A EventArgs that contains the event data.
e
A EventArgs that contains the event data.
e
A EventArgs that contains the event data.
e
A EventArgs that contains the event data.
e
An EventArgs that contains the event data.
e
A EventArgs that contains the event data.
e
A EventArgs that contains the event data.
e
A EventArgs that contains the event data.
e
A EventArgs that contains the event data.
e
A ToolClickEventArgs that contains the event data.
e
A EventArgs that contains the event data.
e
A EventArgs that contains the event data.
e
Event arguments.
config
Dynamic configuration object.
state
Dynamic state object.
index
The location of the item to refresh.
start
The position of the first character in the current text selection within the text box.
length
The number of characters to select.
x
The new Left property value of the control.
y
The new Top property value of the control.
width
The new Width property value of the control.
height
Not used.
index
The array index of the object.
value
The object.
value
An array of items.
Represents a ComboBox control that can be hosted in a DataGridViewComboBoxCell.
The TreeViewComboBox control represents a UserComboBox control with a ListView as the drop down panel.
The TreeViewComboBox control represents a UserComboBox control with a TreeView as the drop down panel.
The UserComboBox control represents a ComboBox control with a custom panel that drops down when the user clicks the down arrow.
Provides access to the UserData and Tag properties associated to the component implementing this interface.
Bindable components implement this interface.
Controls that support drag & drop operations implement this interface.
Provides access to the LabelWrapper associated with the controls that implement this interface.
Provides access to the ReadOnly property for coontrols that support the read-only mode.
Provides access to the Modified property and ModifiedChanged event for controls that implement this interface.
Public Class ComboBox
Inherits ListControl
Implements ILabel, IReadOnlypublic class ComboBox : ListControl, ILabel, IReadOnlyInitial .
Initial .
Optional handler.
Initial .
this.comboBox1.AutoComplete += (s, e) =>
{
if (this.comboBox1.Text == "T")
{
this.compoBox1.SelectedIndex = 1;
e.Handled = true;
}
}