Add Method
Adds an item to the ItemsControl.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public int Add(
Object? value
)
Public Function Add (
value As Object
) As Integer
member Add :
value : Object -> int
Parameters
- Object
- The item to add to the collection.
Return Value
Int32
The position into which the new element was inserted, or -1 to indicate that the item was not inserted into the collection.
Exceptions
InvalidOperationException | The collection is in ItemsSource mode. |