Class
ItemCollection

This class wraps the collection of items contained in a listbox.

Definition

Namespace:ArtOfTest.WebAii.Silverlight

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
[DataContract]
public class ItemCollection : AutomationObject<ItemCollection>, IAutomationPeer, IPeerConverter, IList<string>, ICollection<string>, IEnumerable<string>, IEnumerable

Inheritance: objectAutomationObject<ItemCollection>ItemCollection

Implements: IAutomationPeerICollection<string>IEnumerableIEnumerable<string>IList<string>IPeerConverter

Inherited Members AutomationObject<ItemCollection>.GetProperty(AutomationProperty)AutomationObject<ItemCollection>.GetProperty(AutomationProperty, object)AutomationObject<ItemCollection>.SetProperty(AutomationProperty, object)AutomationObject<ItemCollection>.InvokeMethod(AutomationMethod, params object[])AutomationObject<ItemCollection>.InvokeMethod(string, params object[])AutomationObject<ItemCollection>.Serialize()AutomationObject<ItemCollection>.Deserialize(string)AutomationObject<ItemCollection>.AssignReference(AutomationReference)AutomationObject<ItemCollection>.ReferenceAutomationObject<ItemCollection>.PropertyBag

Constructors

ItemCollection()

Creates a new empty ItemCollection object.

Declaration

cs-api-definition
public ItemCollection()

Properties

Collection

Infrastructure use

Declaration

cs-api-definition
[DataMember]
public List<string> Collection { get; set; }

Property Value

List<string>

Count

Gets the number of items in the collection.

Declaration

cs-api-definition
public int Count { get; }

Property Value

int

Implements ICollection<string>.Count

IsFixedSize

Not supported.

Declaration

cs-api-definition
public bool IsFixedSize { get; }

Property Value

bool

IsReadOnly

This class is always read only once created. It always returns true.

Declaration

cs-api-definition
public bool IsReadOnly { get; }

Property Value

bool

Implements ICollection<string>.IsReadOnly

IsSynchronized

Not supported.

Declaration

cs-api-definition
public bool IsSynchronized { get; }

Property Value

bool

SyncRoot

Not supported.

Declaration

cs-api-definition
public object SyncRoot { get; }

Property Value

object

this[int]

Gets the item at the specified index. Setting is not supported.

Declaration

cs-api-definition
public string this[int index] { get; set; }

Parameters

index

int

The 0 based index of the item to get.

Property Value

string

The itme at the index.

Implements IList<string>.this[int]

Methods

Add(string)

Not supported.

Declaration

cs-api-definition
public void Add(string value)

Parameters

value

string

Implements ICollection<string>.Add(string)

Clear()

Not supported.

Declaration

cs-api-definition
public void Clear()

Implements ICollection<string>.Clear()

Contains(string)

Checks whether or not the specified item is contained in the collection.

Declaration

cs-api-definition
public bool Contains(string value)

Parameters

value

string

The item to check on.

Returns

bool

True/false whether or not the item is contained in this collection.

Implements ICollection<string>.Contains(string)

CopyTo(string[], int)

Not supported.

Declaration

cs-api-definition
public void CopyTo(string[] array, int index)

Parameters

array

string[]

index

int

Implements ICollection<string>.CopyTo(string[], int)

FromRealObject(object)

Wraps the items contained in a real item collection and stores them in this object.

Declaration

cs-api-definition
public override void FromRealObject(object o)

Parameters

o

object

Overrides AutomationObject<ItemCollection>.FromRealObject(object)

GetRealType()

Gets the type of the real object that this class wraps.

Declaration

cs-api-definition
public override string GetRealType()

Returns

string

A string represtation for this real type.

Overrides AutomationObject<ItemCollection>.GetRealType()

IndexOf(string)

Gets the index number for the indicated item.

Declaration

cs-api-definition
public int IndexOf(string value)

Parameters

value

string

The item to get the index of.

Returns

int

An index value.

Implements IList<string>.IndexOf(string)

Insert(int, string)

Not supported.

Declaration

cs-api-definition
public void Insert(int index, string value)

Parameters

index

int

Not supported.

value

string

Not supported.

Implements IList<string>.Insert(int, string)

Remove(string)

Not supported.

Declaration

cs-api-definition
public bool Remove(string value)

Parameters

value

string

Returns

bool

Implements ICollection<string>.Remove(string)

RemoveAt(int)

Not supported.

Declaration

cs-api-definition
public void RemoveAt(int index)

Parameters

index

int

Implements IList<string>.RemoveAt(int)

ToRealObject()

Not supported

Declaration

cs-api-definition
public override object ToRealObject()

Returns

object

Overrides AutomationObject<ItemCollection>.ToRealObject()