Adds a two lines and a bitmap item. The specified return value will be returned when calling GetItem or in the ItemClick event. Example: ListView1.AddTwoLinesAndBitmap("First line", "Second line", LoadBitmap(File.DirAssets, "SomeImage.png"), 1)
Clears all items from the list.
ColorAsInt [write only]
Gets or sets whether the fast scroll icon will appear when the user scrolls the list. The default is false.
GetItem (IndexAsInt) AsObject
Returns the value of the item at the specified position. Returns the "return value" if it was set and if not returns the text of the first line.
Sets the background color that will be used while scrolling the list. This is an optimization done to make the scrolling smoother. Set to Colors.Transparent if the background behind the list is not solid color. The default is black.
Sets the currently selected item. Calling this method will make this item visible. If the user is interacting with the list with the keyboard or the wheel button the item will also be visibly selected. Example: ListView1.SetSelection(10)
SingleLineLayoutAsSingleLineLayout [read only]
Returns the layout that is used to show single line items. You can change the layout values to change the appearance of such items. Example: Dim Label1 As Label Label1 = ListView1.SingleLineLayout.Label Label1.TextSize = 20 Label1.TextColor = Colors.Green
Returns the layout that is used to show two lines and bitmap items. You can change the layout values to change the appearance of such items. For example if you want to remove the second label (in all items with this layout): ListView1.TwoLinesAndBitmap.SecondLabel.Visible = False
TwoLinesLayoutAsTwoLinesLayout [read only]
Returns the layout that is used to show two lines items. You can change the layout values to change the appearance of such items. Example: Dim Label1 As Label Label1 = ListView1.TwoLinesLayout.SecondLabel Label1.TextSize = 20 Label1.TextColor = Colors.Green