Class ImageTransformCollection
Definition
- Namespace:
- Tizen.Multimedia.Util
- Assembly:
- Tizen.Multimedia.Util.dll
Represents a collection of ImageTransform objects that can be individually accessed by index.
public class ImageTransformCollection : IList<ImageTransform>, ICollection<ImageTransform>, IEnumerable<ImageTransform>, IEnumerable
- Inheritance
-
objectImageTransformCollection
- Implements
-
System.Collections.Generic.IList<T><ImageTransform>System.Collections.Generic.ICollection<T><ImageTransform>System.Collections.Generic.IEnumerable<T><ImageTransform>System.Collections.IEnumerable
Constructors
View SourceImageTransformCollection()
Initializes a new instance of the ImageTransformCollection class.
Declaration
public ImageTransformCollection()
Properties
View SourceCount
Gets the number of items contained in the TransformCollection.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int |
this[int]
Gets or sets the ImageTransform at the specified index.
Declaration
public ImageTransform this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
int | index | The zero-based index of the ImageTransform to get or set. |
Property Value
Type | Description |
---|---|
ImageTransform | The ImageTransform at the specified index. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | index is less than 0. |
Methods
View SourceAdd(ImageTransform)
Adds a ImageTransform to the end of the collection.
Declaration
public void Add(ImageTransform item)
Parameters
Type | Name | Description |
---|---|---|
ImageTransform | item | The ImageTransform to add. |
Remarks
ImageTransformCollection accepts null as a valid value for reference types and allows duplicate elements.
Clear()
Removes all items.
Declaration
public void Clear()
Contains(ImageTransform)
Determines whether the ImageTransformCollection contains the specified item.
Declaration
public bool Contains(ImageTransform item)
Parameters
Type | Name | Description |
---|---|---|
ImageTransform | item | The ImageTransform to locate in the collection. |
Returns
Type | Description |
---|---|
bool | true if the ImageTransform is found in the collection; otherwise, false. |
CopyTo(ImageTransform[], int)
Copies the items of the collection to an array, starting at the specified array index.
Declaration
public void CopyTo(ImageTransform[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
ImageTransform[] | array | The one-dimensional array that is the destination of the items copied from the collection. |
int | arrayIndex | The zero-based index in array at which copying begins. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
System.ArgumentException | The number of elements in the source collection is greater than the available space from arrayIndex to the end of the destination array. |
GetEnumerator()
Returns an enumerator that can iterate through the collection.
Declaration
public IEnumerator<ImageTransform> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<T><ImageTransform> | An enumerator that can be used to iterate through the collection. |
IndexOf(ImageTransform)
Determines the index of the specified item in the collection.
Declaration
public int IndexOf(ImageTransform item)
Parameters
Type | Name | Description |
---|---|---|
ImageTransform | item | The ImageTransform to locate in the collection. |
Returns
Type | Description |
---|---|
int | The index of value if found in the ImageTransformCollection; otherwise, -1. |
Insert(int, ImageTransform)
Inserts a ImageTransform into the collection at the specified index.
Declaration
public void Insert(int index, ImageTransform item)
Parameters
Type | Name | Description |
---|---|---|
int | index | The zero-based index at which |
ImageTransform | item | The ImageTransform to insert into the collection. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException | index is less than 0. |
Remove(ImageTransform)
Removes the first occurrence of the specified ImageTransform from the collection.
Declaration
public bool Remove(ImageTransform item)
Parameters
Type | Name | Description |
---|---|---|
ImageTransform | item | The ImageTransform to remove. |
Returns
Type | Description |
---|---|
bool | true if |
RemoveAt(int)
Removes the ImageTransform at the specified index.
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The zero-based index to remove. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | index is less than 0. |
Explicit Interface Implementations
View SourceICollection<ImageTransform>.IsReadOnly
Declaration
bool ICollection<ImageTransform>.IsReadOnly { get; }
Returns
Type | Description |
---|---|
bool |
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |