[About] Version=1.0 Author=Nic Mail=support@hiasm.com [Type] Class=WinElement Inherit=Control,ListControl Interfaces=Component,MarshalByRefObject,Object,ControlManager Info=Represents a Windows control to display a list of items Category=Common [Handlers] DataSource=DataSource [Edit] Class=ListBox Color=BackColor Ctl3D=BorderStyle Strings=Items [Property] Width= | |120 Height= | |95 BackColor= | |clWindow ForeColor= | |clWindowText +Items=Default list of items. ARG(string[])|5| @BorderStyle=Sets the type of border that is drawn around the ListBox. ARG(BorderStyle)|14|2|None,FixedSingle,Fixed3D @ColumnWidth=Sets the width of columns in a multicolumn ListBox. ARG(int)|1|0 @DrawMode=Sets the drawing mode for the control. ARG(DrawMode)|14|0|Normal,OwnerDrawFixed,OwnerDrawVariable @HorizontalExtent=Sets the width by which the horizontal scroll bar of a ListBox can scroll. ARG(int)|1|0 @HorizontalScrollbar=Sets a value indicating whether a horizontal scroll bar is displayed in the control. ARG(bool)|14|1|True,False @IntegralHeight=Sets a value indicating whether the control should resize to avoid showing partial items. ARG(bool)|14|0|True,False @ItemHeight=Sets the height of an item in the ListBox. ARG(int)|1|13 @MultiColumn=Sets a value indicating whether the ListBox supports multiple columns. ARG(bool)|14|1|True,False @RightToLeft=Sets a value indicating whether text displayed by the control is displayed from right to left. ARG(RightToLeft)|14|0|No,Yes,Inherit @ScrollAlwaysVisible=Sets a value indicating whether the vertical scroll bar is shown at all times. ARG(bool)|14|1|True,False @SelectionMode=Sets the method in which items are selected in the ListBox. ARG(SelectionMode)|14|1|None,One,MultiSimple,MultiExtended @Sorted=Sets a value indicating whether the items in the ListBox are sorted alphabetically. ARG(bool)|14|1|True,False @UseTabStops=Sets a value indicating whether the ListBox can recognize and expand tab characters when drawing its strings. ARG(bool)|14|0|True,False [Methods] *doBeginUpdate=Maintains performance while items are added to the ListBox one at a time by preventing the control from drawing until the EndUpdate method is called. ARG()|1|0 *doClearSelected=Unselects all items in the ListBox. ARG()|1|0 *doEndUpdate=Resumes painting the ListBox control after painting is suspended by the BeginUpdate method. ARG()|1|0 *doFindString=Finds the first item in the ListBox that starts with the specified string. ARG(string s)|1|0 *doFindString2=Finds the first item in the ListBox that starts with the specified string. The search starts at a specific starting index. ARG(string s, int startIndex)|1|0 *doFindStringExact=Finds the first item in the ListBox that exactly matches the specified string. ARG(string s)|1|0 *doFindStringExact2=Finds the first item in the ListBox that exactly matches the specified string. The search starts at a specific starting index. ARG(string s, int startIndex)|1|0 *doGetItemHeight=Returns the height of an item in the ListBox. ARG(int index)|1|0 *doGetItemRectangle=Returns the bounding rectangle for an item in the ListBox. ARG(int index)|1|0 *doGetSelected=Returns a value indicating whether the specified item is selected. ARG(int index)|1|0 *doIndexFromPoint=Returns the zero-based index of the item at the specified coordinates. ARG(Point p)|1|0 *doIndexFromPoint2=Returns the zero-based index of the item at the specified coordinates. ARG(int x, int y)|1|0 *doRefresh=Forces the control to invalidate its client area and immediately redraw itself and any child controls. ARG()|1|0 *doResetBackColor=Resets the BackColor property to its default value. ARG()|1|0 *doResetForeColor=Resets the ForeColor property to its default value. ARG()|1|0 *doSelectedIndex=Sets the zero-based index of the currently selected item in a ListBox. ARG(int)|1|0 *doSelectedItem=Sets the currently selected item in the ListBox. ARG(Object)|1|0 *doSetSelected=Selects or clears the selection for the specified item in a ListBox. ARG(int index, bool value)|1|0 *doText=Gets or searches for the text of the currently selected item in the ListBox. ARG(string)|1|0 *doTopIndex=Sets the index of the first visible item in the ListBox. ARG(int)|1|0 *doUseCustomTabOffsets=Sets a value indicating whether the ListBox recognizes and expands tab characters when it draws its strings by using the CustomTabOffsets integer array. ARG(bool)|1|0 *onDrawItem=Occurs when a visual aspect of an owner-drawn ListBox changes. ARG(DrawItemEventArgs)|2|0 *onFindString=Occurs after invoke the method doFindString and returns the result. ARG(int)|2|1 *onFindStringExact=Occurs after invoke the method doFindStringExact and returns the result. ARG(int)|2|1 *onGetItemHeight=Occurs after invoke the method doGetItemHeight and returns the result ARG(int)|2|1 *onGetItemRectangle=Occurs after invoke the method doGetItemRectangle and returns the result ARG(Rectangle)|2|0 *onGetSelected=Occurs after invoke the method doGetSelected and returns the result ARG(bool)|2|104 *onIndexFromPoint=Occurs after invoke the method doIndexFromPoint and returns the result ARG(int)|2|1 *onMeasureItem=Occurs when an owner-drawn ListBox is created and the sizes of the list items are determined. ARG(MeasureItemEventArgs)|2|0 *onPaddingChanged=Occurs when the value of the Padding property changes. ARG(EventArgs)|2|0 onSelectedIndexChanged=Occurs when the SelectedIndex property or the SelectedIndices collection has changed. ARG(int)|2|1 *BorderStyle=Returns the type of border that is drawn around the ListBox. ARG(BorderStyle)|3|0 *ColumnWidth=Returns the width of columns in a multicolumn ListBox. ARG(int)|3|1 *CustomTabOffsets=Returns the width of the tabs between the items in the ListBox. ARG(ListBox.IntegerCollection)|3|0 *DefaultItemHeight=Specifies the default item height for an owner-drawn ListBox. ARG(int)|3|1 *DrawMode=Returns the drawing mode for the control.ARG(DrawMode)|3|0 *HorizontalExtent=Returns the width by which the horizontal scroll bar of a ListBox can scroll. ARG(int)|3|1 *HorizontalScrollbar=Returns a value indicating whether a horizontal scroll bar is displayed in the control.ARG(bool)|3|104 *IntegralHeight=Returns a value indicating whether the control should resize to avoid showing partial items.ARG(bool)|3|104 *ItemHeight=Returns the height of an item in the ListBox. ARG(int)|3|1 *Items=Returns the items of the ListBox. ARG(ListBox.ObjectCollection)|3|0 *MultiColumn=Returns a value indicating whether the ListBox supports multiple columns. ARG(bool)|3|104 *NoMatches=Specifies that no matches are found during a search.ARG(int)|3|1 *PreferredHeight=Returns the combined height of all items in the ListBox. ARG(int)|3|1 *RightToLeft=Returns a value indicating whether text displayed by the control is displayed from right to left. ARG(RightToLeft)|3|0 *ScrollAlwaysVisible=Returns a value indicating whether the vertical scroll bar is shown at all times. ARG(bool)|3|104 *SelectedIndex=Returns the zero-based index of the currently selected item in a ListBox. ARG(int)|3|1 *SelectedIndices=Returns a collection that contains the zero-based indexes of all currently selected items in the ListBox. ARG(ListBox.SelectedIndexCollection)|3|0 SelectedItem=Returns the currently selected item in the ListBox. ARG(Object)|3|0 *SelectedItems=Returns a collection containing the currently selected items in the ListBox. ARG(ListBox.SelectedObjectCollection)|3|0 *SelectionMode=Returns the method in which items are selected in the ListBox. ARG(SelectionMode)|3|0 *Sorted=Returns a value indicating whether the items in the ListBox are sorted alphabetically. ARG(bool)|3|104 *Text=Returns or searches for the text of the currently selected item in the ListBox. ARG(string)|3|2 *TopIndex=Returns the index of the first visible item in the ListBox. ARG(int)|3|1 *UseCustomTabOffsets=Returns a value indicating whether the ListBox recognizes and expands tab characters when it draws its strings by using the CustomTabOffsets integer array. ARG(bool)|3|104 *UseTabStops=Returns a value indicating whether the ListBox can recognize and expand tab characters when drawing its strings. ARG(bool)|3|104 ListBox=Returns the ListBox object. ARG(ListBox)|3|0 *index=The zero-based index of the item to return the height for. ARG(int)|4|1 *p=A Point object containing the coordinates used to obtain the item index. ARG(Point)|4|0 *s=The text to search for. ARG(string)|4|2 *startIndex=The zero-based index of the item before the first item to be searched. Set to negative one (-1) to search from the beginning of the control. ARG(int)|4|1 *value=true to select the specified item; otherwise, false. ARG(bool)|4|104 *x=The x-coordinate of the location to search. ARG(int)|4|1 *y=The y-coordinate of the location to search. ARG(int)|4|1