Goblin - A Platform for 3D AR and VR Applications

ListBox Members

ListBox overview

Public Static Fields

MainLayer 
SelectionLayer 

Public Instance Constructors

ListBox Constructor Create a new list box control

Public Instance Fields

index (inherited from Control) 
isDefault (inherited from Control) 

Public Instance Properties

CanHaveFocusCan this control have focus
ControlType (inherited from Control)Type of the control
Hotkey (inherited from Control)The controls hotkey
ID (inherited from Control)Unique ID of the control
IsEnabled (inherited from Control)Is the control enabled
IsVisible (inherited from Control)Is the control visible
ItemOverloaded. Indexer for items in the list
NumberItemsNumber of items current in the list
Parent (inherited from Control)The parent dialog of this control
StyleSets the style of the listbox
UserData (inherited from Control)User specified data

Public Instance Methods

AddItemAdds an item to the list box control
ClearRemoves all items from the control
ContainsPoint (inherited from Control)Does the control contain this point
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetSelectedIndex For single-selection listbox, returns the index of the selected item. For multi-selection, returns the first selected item after the previousSelected position. To search for the first selected item, the app passes -1 for previousSelected. For subsequent searches, the app passes the returned index back to GetSelectedIndex as. previousSelected. Returns -1 on error or if no item is selected.
GetSelectedItemOverloaded. Gets the selected item
GetType (inherited from Object) Gets the Type of the current instance.
HandleKeyboardCalled when the control needs to handle the keyboard
HandleMouseCalled when the control should handle the mouse
InsertItemInserts an item to the list box control
MsgProc (inherited from Control)Message Handler
OnFocusIn (inherited from Control)Called when control gets focus
OnFocusOut (inherited from Control)Called when control loses focus
OnHotKey (inherited from Control)Called when the control's hotkey is hit
OnInitializeInitialize the scrollbar control here
OnMouseEnter (inherited from Control)Called when mouse goes over the control
OnMouseExit (inherited from Control)Called when mouse leaves the control
Refresh (inherited from Control) Refreshes the control
RemoveAtRemoves an item at a particular index
RenderCalled when the control should be rendered
SelectItemSelects this item
SetBorderSets the border and margin sizes
SetLocation (inherited from Control)Called to set control's location
SetScrollbarWidthSets the scroll bar width of this control
SetSize (inherited from Control)Called to set control's size
ToString (inherited from Object) Returns a String that represents the current Object.

Public Instance Events

ContentsChanged 
DoubleClick 
Selection 

Protected Instance Fields

border 
boundingBox (inherited from Control) 
controlId (inherited from Control) 
controlType (inherited from Control) 
controlX (inherited from Control) 
controlY (inherited from Control) 
elementList (inherited from Control) 
enabled (inherited from Control) 
hasFocus (inherited from Control) 
height (inherited from Control) 
hotKey (inherited from Control) 
isDragging 
isMouseOver (inherited from Control) 
itemList 
localUserData (inherited from Control) 
margin 
parentDialog (inherited from Control) 
scrollbarControl 
scrollWidth 
selectedIndex 
selectedStarted 
selectionRect 
style 
textHeight 
textRect 
visible (inherited from Control) 
width (inherited from Control) 

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
RaiseContentsChangedEventRaises the contents changed event
RaiseDoubleClickEventRaises the double click event
RaiseSelectionEventRaises the selection event
UpdateRectanglesUpdate the rectangles for the list box control

See Also

ListBox Class | Microsoft.Samples.DirectX.UtilityToolkit Namespace