Class
InlineCollection

Wraps an InlineCollection object.

Definition

Namespace:ArtOfTest.WebAii.Controls.Xaml.Silverlight

Assembly:ArtOfTest.WebAii.dll

Syntax:

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

Inheritance: objectAutomationObject<InlineCollection>InlineCollection

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

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

Constructors

InlineCollection()

Declaration

cs-api-definition
public InlineCollection()

Properties

Count

Gets the number of elements actually contained in the collection.

Declaration

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

Property Value

int

Implements ICollection<Inline>.Count

IsReadOnly

Gets whether the collection is read only.

Declaration

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

Property Value

bool

Implements ICollection<Inline>.IsReadOnly

this[int]

Get the item at specific index.

Declaration

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

Parameters

index

int

The item index.

Property Value

Inline

The item at specific index

Implements IList<Inline>.this[int]

Methods

Add(Inline)

Add new item to the collection.

Declaration

cs-api-definition
public void Add(Inline item)

Parameters

item

Inline

The item to be added.

Implements ICollection<Inline>.Add(Inline)

Clear()

Clears all items in the collection.

Declaration

cs-api-definition
public void Clear()

Implements ICollection<Inline>.Clear()

Contains(Inline)

Check if item exists in the collection.

Declaration

cs-api-definition
public bool Contains(Inline item)

Parameters

item

Inline

The item to check.

Returns

bool

True if item exists, otherwise false.

Implements ICollection<Inline>.Contains(Inline)

CopyTo(Inline[], int)

Copies the entire collection to a compatible one-dimensional array.

Declaration

cs-api-definition
public void CopyTo(Inline[] array, int arrayIndex)

Parameters

array

Inline[]

The one-dimensional System.Array that is the destination of the elements copied from the collection.

arrayIndex

int

The zero-based index in array at which copying begins.

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

FromRealObject(object)

Converts a Silverlight object to an AutomationObject

Declaration

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

Parameters

obj

object

Overrides AutomationObject<InlineCollection>.FromRealObject(object)

GetEnumerator()

Get enumerator.

Declaration

cs-api-definition
public IEnumerator GetEnumerator()

Returns

IEnumerator

The enumerator.

Implements IEnumerable.GetEnumerator()

GetRealType()

Gets the real peer type

Declaration

cs-api-definition
public override string GetRealType()

Returns

string

Overrides AutomationObject<InlineCollection>.GetRealType()

IndexOf(Inline)

Get the index of an item.

Declaration

cs-api-definition
public int IndexOf(Inline item)

Parameters

item

Inline

The item to locate.

Returns

int

The index of item if found in the list, otherwise -1.

Implements IList<Inline>.IndexOf(Inline)

Insert(int, Inline)

Inserts an element at the specified index.

Declaration

cs-api-definition
public void Insert(int index, Inline item)

Parameters

index

int

The zero-based index at which item should be inserted.

item

Inline

The item to insert.

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

Remove(Inline)

Removes the first occurrence of a specific object from the list.

Declaration

cs-api-definition
public bool Remove(Inline item)

Parameters

item

Inline

The object to remove from the collection.

Returns

bool

True if item is successfully removed, otherwise false.

Implements ICollection<Inline>.Remove(Inline)

RemoveAt(int)

Removes the item at the specified index.

Declaration

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

Parameters

index

int

The zero-based index of the item to remove.

Implements IList<Inline>.RemoveAt(int)