The
UltraListBar1.Orientation = Infragistics.Win.UltraWinListBar.Orientation.Vertical
If you would like the orientation to be horizontal, you can set the property equal to one or use this code:
UltraListBar1.Orientation = Infragistics.Win.UltraWinListBar.Orientation.Horizontal
When retrieving the value of this property, the enumerator 0 (vertical) or 1 (horizontal) will be returned.
The
UltraListBar1.DefaultStyle = Infragistics.Win.UltraWinListBar.Style.LargeIcons
If you would like to set the style to use small icons (16 x 16), set the enumerator equal to one or use this code:
UltraListBar1.DefaultStyle = Infragistics.Win.UltraWinListBar.Style.SmallIcons
When retrieving this property, the enumerator 0 (large icons) or 1 (small icons) will be returned.
Before adding an
UltraListBar1.Groups.Add()
You may also add a group and pass it a unique Key.
UltraListBar1.Groups.Add("First Group")
Additionally, you may assign the text to the group at this time.
UltraListBar1.Groups.Add("Second Group", "Test Text")
This constructor will create a new
This constructor uses a Boolean value to determine if the
The Rename method will allow the user to change the
UltraListBar1.Groups(0).Rename()
OnDisposed sets the
This method will clear every
UltraListBar1.Groups(0).Items.Clear()
If a default value for the Text of the group was not explicitly assigned, then the default value of the text property is "New Group".
The ToString method is used to return the
MsgBox(UltraListBar1.Groups(0).ToString())
The ResetStyle method allows you to set the
The ResetAppearance method gives you the ability to undo all changes made to the
This method gives you the ability to undo all changes made to the appearance of the items within the group and revert the Appearance property values back to their defaults.
The ResetHeaderAppearance method gives you the ability to undo all changes made to the appearance of the group's header and revert the Appearance property values back to their defaults.
The Index property of the group is useful in returning a specific group's index within the collection after the collection has been manipulated. It is recommended that you assign a Key to an added group whenever possible and manipulate groups according to their key and not their index.
Dim grpIndex As VariantType
grpIndex = (UltraListBar4.Groups("First Group").Index())
MsgBox(grpIndex)
The Items property of the group gives you the ability to manipulate the Items collection as a whole and the each
UltraListBar1.Groups(0).Items.Add("Key","Text")
You can also add an
UltraListBar1.Groups(0).Items("Key").Appearance = appearance
The appearance variable in the above sample code must be declared in this manner:
Dim appearance As Infragistics.Win.AppearanceBase
Setting the Selected property equal to true causes the group to be selected. This property can also be used to return if the group is currently selected.
UltraListBar1.Groups(0).Selected = True
The UltraListBar property allows you to work with the control object that contains the group. You can manipulate the control using the returned reference.
Dim thisControl As Infragistics.Win.UltraWinListBar.UltraListBar
thisControl = UltraListBar1.Groups(0).Control()
thisControl.BorderStyle = Infragistics.Win.UIElementBorderStyle.Dashed
The Text property uses a string variable to determine the text that will be displayed for a group.
UltraListBar1.Groups(0).Text = "Group Text"
The Style property determines the size of the icons used for the items within a group. You may use large (32 x 32) or small (16 x 16) icons. This property will return an enumerator: 0 for large icons and 1 for small icons.
UltraListBar1.Groups(0).Style = Infragistics.Win.UltraWinListBar.Style.LargeIcons
The group's UIElement property returns the user interface element associated with the group. This is useful in manipulating the
MsgBox(UltraListBar4.Groups(0).UIElement.IsFullyVisible)
The Appearance property gets/sets the Appearance object assigned to the group. The Appearance object allows you to create appearances that can be assigned to many different objects. Therefore, the Appearance object saves you valuable time that would otherwise be spent setting formatting properties for each object.
Dim myAppearance As Infragistics.Win.AppearanceBase
myAppearance.BorderAlpha = Infragistics.Win.Alpha.Transparent
UltraListBar1.Groups(0).Appearance = myAppearance
You could also go directly through the appearance object of each group to assign formatting properties.
UltraListBar1.Groups(0).Appearance.BorderAlpha = Infragistics.Win.Alpha.Transparent
The HasAppearance property returns true if an
The HasItemAppearance property is used to determine if the group's Items collection has been assigned an
UltraListBar1.Groups(0).ItemAppearance = myAppearance
The HeaderAppearance property gets/sets the Appearance object assigned to the group's header. The Appearance object allows you to create appearances that can be assigned to many different objects. Therefore, the Appearance object saves you valuable time that would otherwise be spent setting formatting properties for each object.
Dim myAppearance As Infragistics.Win.AppearanceBase
myAppearance.BorderAlpha = Infragistics.Win.Alpha.Transparent
UltraListBar4.Groups(0).HeaderAppearance = myAppearance
You could also go directly through the appearance object of each group to assign formatting properties.
UltraListBar4.Groups(0).HeaderAppearance.BorderAlpha = Infragistics.Win.Alpha.Transparent
The HasHeaderAppearance property returns true if a
The GroupHeaderUIElement behaves like a button and contains the
The ButtonStyle property of the GroupHeaderUIElement has twelve settings. These settings are: Borderless, Button, Button3D, ButtonSoft, ButtonSoftExtended, Default, Flat, FlatBorderless, PopUp, PopUpBorderless, PupUpSoft and PopUpSoftBorderless.
The GroupItemAreaUIElement class contains the
The
Before adding any items to the UltraListBar, you must first have a Group object. When a group is added and the text of the group has not been specified, the default text is New Group. The following code adds a group to the end of the collection:
UltraListBar1.Groups.Add()
You may also add a group and pass it a unique key as well as determine the text of the group.
The Add method is an overloaded method. This version of the Add method adds a specified
UltraListBar1.Groups.Add(New Infragistics.Win.UltraWinListBar.Group())
The Remove method must be passed a
UltraListBar1.Groups.Remove(UltraListBar1.Groups(0))
The RemoveAt method removes a
UltraListBar1.Groups.RemoveAt(0)
The Add method is an overloaded method. This version of the Add method receives no parameters and will add a group to the end of the collection with the default
UltraListBar1.Groups.Add()
The Add method is an overloaded method. This Add method of the Groups collection receives a Key passed as a string. The group will be added to the end of the Groups collection and have the default
UltraListBar1.Groups.Add(myKey)
The Add method is an overloaded method. This Add method of the Groups collection receives a Key and the
UltraListBar1.Groups.Add("myKey", "myText")
The Insert method is an overloaded method. The method inserts a
UltraListBar1.Groups.Insert(0)
The Insert method is an overloaded method. This method inserts a
UltraListBar1.Groups.Insert(0, "myKey")
The Insert method is an overloaded method. This method inserts a
UltraListBar1.Groups.Insert(0, "myKey", "myText")
The Clear method removes every
UltraListBar1.Groups.Clear()
The Remove method clears a specified
UltraListBar4.Groups.Remove(myGroup)
Before adding any items to the UltraListBar, you must first have a Group object. When a group is added and the text of the group has not been specified, the default text is New Group. The following code adds a group to the end of the collection:
UltraListBar1.Groups.Add()
You may also add a group and pass it a unique key as well as determine the text of the group.
The IsFixedSize property reflects whether the Groups collection can be sized.
If UltraListBar4.Groups.IsFixedSize = False Then UltraListBar4.Groups.Add()
The string serves as the group's unique Key within the collection.
The Control property returns the UltraListBar control that contains the Groups collection. After retrieving the control, you are free to manipulate the many properties associated with the control. The following code sample uses the Control property of the Groups collection to change the
UltraListBar1.Groups.Control.Appearance = myAppearance
The IsReadOnly property is used to determine if the groups collection is read-only. The property will return a Boolean value.
If UltraListBar4.Groups.IsReadOnly = False Then UltraListBar4.Groups.Insert(0)
The group header and the item icons behave as buttons.
Before adding any items to the UltraListBar control, you must first add a
UltraListBar1.Groups(0).Items.Add()
OnDispose sets the object to null when the Disposed method has been called.
The ToString property returns the Key of the item as a string. The key of the item is the unique identifier of tht item within the Items Collection. The ToString property will return an empty string if a key has not been assigned to the item.
myString = UltraListBar4.Groups(0).Items(0).ToString
The Rename method is used to allow the user to change the
UltraListBar1.Groups(0).Items(0).Rename()
The EnsureVisible method is used to make an item visible to the user.
UltraListBar4.Groups(0).Items(0).EnsureVisible()
The ShouldSerializeText property gives the developer the ability to determine if the
The ResetText method sets the
The ShouldSerializeSmallImageIndex property gives the developer the ability to determine if the
The ResetSmallImageIndex method sets the integer of the
The ShouldSerializeLargeImageIndex property gives the developer the ability to determine if the
The ResetLargeImageIndex method sets the integer of the
The current property values for
The ResetAppearance method will revert the properties of the
The Index property returns an integer value which reflects the index of the item within the collection. The index allows you to gain a reference to the item within the collection. Keep in mind that indexes can change when adding or deleting items. It is recommended that you assign items a Key value and use the key to access items within the collection. The following code returns the index of the item that has the key value "myKey".
myInt = UltraListBar1.Groups(0).Items("myKey").Index()
The Group property will return a reference to the
If e.Item.Group.Index = 0 Then MsgBox("Clicked Within Group Zero!")
This code must be placed within the ItemSelected event or another event where the 'e As Infragistics.Win.UltraWinListBar.ItemEventArgs' has been passed.
The IsVisible property is used to determine if the item is visible.
If UltraListBar1.Groups(0).Items(0).IsVisible Then UltraListBar1.Groups(0).Items(0).Text = "Visible!"
The Text property is used to set the text associated with an item. The property also returns the text of an item. The value must be a string variable.
UltraListBar4.Groups(0).Items(0).Text = "Item Text"
The Appearance property of the item will return a reference to the Appearance object that has been assigned to this item. Once you have retrieved the Appearance object, you will be able to modify its formatting properties. You are also able to assign a previously created Appearance object to the item.
UltraListBar1.Groups(0).Items("myItem").Appearance = myAppearance
The HasAppearance property allows you to determine if the
The ItemImageUIElement represents the visible graphic portion of an
The DrawBackColor method will draw the backcolor of the
AdjustImageDisplayRect may be needed when the image resides on a button that is pressed. In this case, the image may be offset 1 pixel right and down.
The Item property of the ItemImageUIElement will return the
The Items Collection contains every
MsgBox(UltraListBar1.Groups(0).Items.Item(0).Key)
MsgBox(UltraListBar1.Groups(0).Items(0).Key)
The Add method will add an
UltraListBar1.Groups(0).Items.Add(myItem)
The parameter passed must be dimmed as an
The RemoveAt method must be passed an integer. The item at the specified
UltraListBar1.Groups(0).Items.RemoveAt(0)
The Add method will add an
The Add method will add an
UltraListBar4.Groups(0).Items.Add("myKey")
The Add method will add an
UltraListBar1.Groups(0).Items.Add(myKey, myText)
The Insert method will add an
UltraListBar1.Groups(0).Items.Insert(3)
The Insert method will add an
UltraListBar1.Groups(0).Items.Insert(3, "myKey")
The Insert method will add an
UltraListBar1.Groups(0).Items.Insert(3, "myKey", "myText")
The Clear method will empty the Items collection of every
UltraListBar1.Groups(0).Items.Clear()
The Remove method will extract a specified
The Items Collection contains every
MsgBox(UltraListBar1.Groups(0).Items.Item(0).Key)
MsgBox(UltraListBar1.Groups(0).Items(0).Key)
The ISFixedSize property will return true if you are not able to add or remove an
MsgBox(UltraListBar1.Groups(0).Items.IsFixedSize)
The Integer indexer reflects the position of the
The String indexer references the items by their key value. The Key value must be a string and it must be unique.
The IsReadOnly property allows you to determine if the collection is read-only.
MsgBox(UltraListBar4.Groups(0).Items.IsReadOnly())
This UIElement is the sub object of the
The ItemUIElement class is composed of two UIElements: the
The child elements for the ItemUIElement are the
If the mouse is left clicked over the adjustable area of the ItemUIElement, true will be returned. The mouse messages will be forwarded to the UIElement that it has been passed by reference.
The Item property gives you access to the
Passed a boolean value called 'disposing' to determine if the resources should be cleaned up.
OnPropertyChanged will also be called.
The ShouldSerializeGroups property returns true if the number of groups is greater than one or if there is one
The ResetGroups method will rid the collection of every
UltraListBar1.Groups.Clear()
The ResetAppearances method rids the
UltraListBar4.Appearances.Clear()
The GroupSelected event returns a reference to the
Dim selectedGroup As Integer
selectedGroup = e.Group.Index
The KeyPress event returns a reference (the KeyChar) of the key that has been pressed. The KeyPress will fire after the KeyUp event.
The KeyDown event returns a reference (the KeyChar) of the key that has been pressed. This event is fired before the KeyUp and KeyPress events.
The KeyUp event returns a reference (the KeyChar) of the key that has been pressed. This event is fired before the KeyPress event and after the KeyDown event.
The ItemSelected event returns a reference to the
When more than one group is contained within the control, it is necessary to check the index of the group as well before performing any processing.
Dim selectedItem As Integer
selectedItem = e.Item.Index
If e.Item.Group.Index = 0 Then ' checks to be sure that this occurs only when the first group's first item is clicked
UltraListBar1.Groups(0).Text = "Item Selected!"
End If
Returns the ControlUIElement that contains all the visible graphics of the control. Other UIElements that are contained by the main element include:
Returns the UIElement that contains all the visible graphics of the control. Other UIElements that are contained by the main element include:
The Groups property gets/sets the Groups collection that is associated with the control. Obtaining a reference to the Groups collection enables you to access each
Dim myGroupCollection As Infragistics.Win.UltraWinListBar.GroupsCollection
Dim myGroup As Infragistics.Win.UltraWinListBar.Group
myGroupCollection.Add(myGroup)
UltraListBar1.Groups = myGroupCollection
The Appearances property allows you to determine the Appearance objects that have been assigned to different graphical elements within the application. You can add and remove appearances to the collection as well as manipulate individual properties of each
Dim myAppearances As Infragistics.Win.AppearancesCollection
myAppearances = UltraListBar4.Appearances()
The SelectedGroup property returns the
MsgBox(UltraListBar4.SelectedGroup.Index)
This code will return the text of the selected group.
MsgBox(UltraListBar4.SelectedGroup.Text)
The Orientation property determines whether the UltraListBar control is positioned horizontally or vertically.
UltraListBar1.Orientation = Infragistics.Win.UltraWinListBar.Orientation.Vertical
The GroupHeadersVisible property determines whether the Group headers are visible.
The SmallImageList property must be set to a variable dimmed as an ImageList.
Dim myImageList As ImageList
UltraListBar1.SmallImageList = myImageList
The LargeImageList property must be set to a variable dimmed as an ImageList.
Dim myImageList As ImageList
UltraListBar1.LargeImageList = myImageList
The ItemAppearance property must be set to a variable dimmed as an Appearance object. The property will also return an Appearance type.
Dim myAppearance As Infragistics.Win.Appearance
UltraListBar1.ItemAppearance = myAppearance
The HeaderAppearance property is used to assign an Appearance object to the header of a group. It can also be used to retrieve the Appearance object that has been previously assigned.
Dim myAppearance As Infragistics.Win.Appearance
UltraListBar1.HeaderAppearance = myAppearance
The Appearance object encapsulates the behaviors of the properties related to visual formatting. After you create an Appearance object, you can manipulate its properties and reuse the object as ofte as you wish within your project.
Dim myAppearance As Infragistics.Win.Appearance
myAppearance.BackColor = System.Drawing.Color.Aquamarine
The BorderStyle property has ten settings. The BorderStyle can be dashed, dotted, raised, solid, etched, inset or have none of these qualities.
UltraListBar1.BorderStyle = Infragistics.Win.UIElementBorderStyle.InsetSoft
The UltraListBarUIElement occupies the entire area of the control.
When the OnPreMouseDown is passed 'true', normal mouse down processing will be skipped.
The background will only be draw here if the