New to Telerik UI for WinFormsStart a free 30-day trial

A collection that stores XmlPropertySetting objects.

Definition

Constructors

Initializes a new instance of XmlPropertySettingCollection.

C#
public XmlPropertySettingCollection()

Initializes a new instance of XmlPropertySettingCollection containing any array of XmlPropertySetting objects.

C#
public XmlPropertySettingCollection(XmlPropertySetting[] value)
Parameters:valueXmlPropertySetting[]

A array of XmlPropertySetting objects with which to intialize the collection

Initializes a new instance of XmlPropertySettingCollection based on another XmlPropertySettingCollection.

C#
public XmlPropertySettingCollection(XmlPropertySettingCollection value)
Parameters:valueXmlPropertySettingCollection

A XmlPropertySettingCollection from which the contents are copied

Properties

Represents the entry at the specified index of the XmlPropertySetting.

C#
public XmlPropertySetting this[int index] { get; set; }
Parameters:indexint

The zero-based index of the entry to locate in the collection.

Property Value:

The entry at the specified index of the collection.

Exceptions:

ArgumentOutOfRangeException

index is outside the valid range of indexes for the collection.

Methods

Adds a XmlPropertySetting with the specified value to the XmlPropertySettingCollection .

C#
public int Add(XmlPropertySetting value)
Parameters:valueXmlPropertySetting

The XmlPropertySetting to add.

Returns:

int

The index at which the new element was inserted.

Copies the elements of an array to the end of the XmlPropertySettingCollection.

C#
public void AddRange(XmlPropertySetting[] value)
Parameters:valueXmlPropertySetting[]

An array of type XmlPropertySetting containing the objects to add to the collection.

Adds the contents of another XmlPropertySettingCollection to the end of the collection.

C#
public void AddRange(XmlPropertySettingCollection value)
Parameters:valueXmlPropertySettingCollection

A XmlPropertySettingCollection containing the objects to add to the collection.

Gets a value indicating whether the XmlPropertySettingCollection contains the specified XmlPropertySetting.

C#
public bool Contains(XmlPropertySetting value)
Parameters:valueXmlPropertySetting

The XmlPropertySetting to locate.

Returns:

bool

true if the XmlPropertySetting is contained in the collection; otherwise, false.

Copies the XmlPropertySettingCollection values to a one-dimensional Array instance at the specified index.

C#
public void CopyTo(XmlPropertySetting[] array, int index)
Parameters:arrayXmlPropertySetting[]

The one-dimensional Array that is the destination of the values copied from XmlPropertySettingCollection .

indexint

The index in array where copying begins.

Exceptions:

ArgumentException

array is multidimensional.

-or-

The number of elements in the XmlPropertySettingCollection is greater than the available space between index and the end of array.

ArgumentNullException

array is null.

ArgumentOutOfRangeException

index is less than array's lowbound.

Returns an enumerator that can iterate through the XmlPropertySettingCollection .

C#
public XmlPropertySettingCollection.XmlPropertySettingEnumerator GetEnumerator()
Returns:

XmlPropertySettingCollection.XmlPropertySettingEnumerator

None.

Returns the index of a XmlPropertySetting in the XmlPropertySettingCollection .

C#
public int IndexOf(XmlPropertySetting value)
Parameters:valueXmlPropertySetting

The XmlPropertySetting to locate.

Returns:

int

The index of the XmlPropertySetting of value in the XmlPropertySettingCollection, if found; otherwise, -1.

Inserts a XmlPropertySetting into the XmlPropertySettingCollection at the specified index.

C#
public void Insert(int index, XmlPropertySetting value)
Parameters:indexint

The zero-based index where value should be inserted.

valueXmlPropertySetting

The XmlPropertySetting to insert.

Removes a specific XmlPropertySetting from the XmlPropertySettingCollection .

C#
public void Remove(XmlPropertySetting value)
Parameters:valueXmlPropertySetting

The XmlPropertySetting to remove from the XmlPropertySettingCollection .

Exceptions:

ArgumentException

value is not found in the Collection.