ClassSelectedDatesCollection
Holds a colleciton of selected dates for a Silverlight Calendar control.
Definition
Namespace:ArtOfTest.WebAii.Silverlight
Assembly:ArtOfTest.WebAii.dll
Syntax:
[DataContract]
public class SelectedDatesCollection : AutomationObject<SelectedDatesCollection>, IAutomationPeer, IPeerConverter, IList<DateTime>, ICollection<DateTime>, IEnumerable<DateTime>, IEnumerable
Inheritance: objectAutomationObject<SelectedDatesCollection>SelectedDatesCollection
Implements:
Inherited Members
Constructors
SelectedDatesCollection()
Constructs a new SelectedDatesCollection object.
Declaration
public SelectedDatesCollection()
Properties
Collection
Gets / Sets the collection of DateTime objects this class contains.
Count
Returns the number of items contained in this collection.
IsReadOnly
Always returns True.
Methods
Add(DateTime)
Adds a DateTime to this collection.
Declaration
public void Add(DateTime item)
Parameters
item
The DateTime to add.
Implements
Contains(DateTime)
Returns true if this collection contains the specified DateTime.
CopyTo(DateTime[], int)
Copies this collection to the specified array.
FromRealObject(object)
Converts a real Silverlight object into this wrapped object.
Declaration
public override void FromRealObject(object obj)
Parameters
obj
The real Silverlight object to convert.
Overrides
GetEnumerator()
Returns an IEnumerator<T> that supports a simple iteration over a collection of DateTime objects.
Declaration
public IEnumerator<DateTime> GetEnumerator()
Returns
An IEnumerator<DateTime>
Implements
GetRealType()
Gets a string representing the Silverlight type this class wraps.
IndexOf(DateTime)
Gets the index of the specified DateTime.
Insert(int, DateTime)
Inserts the specified DateTime into the collection at the specified index. Existing DateTime values are moved down one index.
Remove(DateTime)
Removes the specified DateTime from the collection.
RemoveAt(int)
Removes the DateTime at the specified index from this collection.
Declaration
public void RemoveAt(int index)
Parameters
index
The index of the DateTime to remove. The index is 0 based.
Implements
ToRealObject()
Throws the NotSupportedException because this object cannot be converted into a real Silverlight object.
Declaration
public override object ToRealObject()
Returns
Does not return.
Exceptions
Always thrown.
Overrides