Class
AddItemAdapterCollection

Represents a collection of item adapters for the Telerik controls.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

cs-api-definition
public class AddItemAdapterCollection : Freezable, IEnumerable, INotifyCollectionChanged, IDisposable

Inheritance: objectAddItemAdapterCollection

Derived Classes: AddItemAdapter

Implements: IDisposableIEnumerableINotifyCollectionChanged

Constructors

AddItemAdapterCollection()

Initializes a new instance of the AddItemAdapterCollection class.

Declaration

cs-api-definition
public AddItemAdapterCollection()

Fields

AdditionalItemPositionProperty

Identifies the AdditionalItemPosition dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AdditionalItemPositionProperty

Field Value

DependencyProperty

AdditionalItemProperty

Identifies the AdditionalItem dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AdditionalItemProperty

Field Value

DependencyProperty

SourceProperty

Identifies the Source dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SourceProperty

Field Value

DependencyProperty

Properties

AdditionalItem

Gets or sets the additional item.

Declaration

cs-api-definition
public object AdditionalItem { get; set; }

Property Value

object

AdditionalItemPosition

Gets or sets the position of additional item.

Declaration

cs-api-definition
public AdditionalItemPosition AdditionalItemPosition { get; set; }

Property Value

AdditionalItemPosition

Source

Gets or sets the source collection that the AddItemAdapterCollection is bound to.

Declaration

cs-api-definition
public IEnumerable Source { get; set; }

Property Value

IEnumerable

Methods

CreateInstanceCore()

Creates a new instance of the AddItemAdapterCollection class.

Declaration

cs-api-definition
protected override Freezable CreateInstanceCore()

Returns

Freezable

Dispose()

Releases the resources used by the AddItemAdapterCollection. This method is called to free up unmanaged resources and perform cleanup tasks.

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

Remarks

Once this method has been called, the AddItemAdapterCollection instance should not be used. Ensure that all operations on this instance are completed before calling this method.

Dispose(bool)

Disposes the resources used by the AddItemAdapterCollection.

Declaration

cs-api-definition
protected virtual void Dispose(bool disposing)

Parameters

disposing

bool

Finalize()

Finalizes an instance of the AddItemAdapterCollection class.

Declaration

cs-api-definition
protected override void Finalize()

GetEnumerator()

Returns an enumerator that iterates through the AddItemAdapterCollection.

Declaration

cs-api-definition
public IEnumerator GetEnumerator()

Returns

IEnumerator

An enumerator that can be used to iterate through the collection.

Implements IEnumerable.GetEnumerator()

OnCollectionChanged(NotifyCollectionChangedEventArgs)

Raises the CollectionChanged event with the specified arguments.

Declaration

cs-api-definition
protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs e)

Parameters

e

NotifyCollectionChangedEventArgs

Events

CollectionChanged

Occurs when the collection has changed, such as when items are added or removed.

Declaration

cs-api-definition
public event NotifyCollectionChangedEventHandler CollectionChanged

Event Value

NotifyCollectionChangedEventHandler

Implements INotifyCollectionChanged.CollectionChanged