Class Panel
Abstract class Panel, implements a collection of UIObject.
public abstract class Panel : UIObject, IList<UIObject>, ICollection<UIObject>, IEnumerable<UIObject>, IEnumerable
- Inheritance
-
Panel
- Implements
- Derived
- Inherited Members
Constructors
Panel()
Initializes a new instance of Panel.
public Panel()
- See Also
Panel(params UIObject[])
Initializes a new instance of Panel
public Panel(params UIObject[] items)
Parameters
items
UIObject[]Array of UIObject to be added to the Panel.
- See Also
Properties
Count
Gets the number of elements contained in IList.
public int Count { get; }
Property Value
- See Also
IsReadOnly
Gets a value indicating whether the IList is read-only.
public bool IsReadOnly { get; }
Property Value
- See Also
this[int]
Gets or sets the element at the specified index.
public UIObject this[int index] { get; set; }
Parameters
index
intIndex.
Property Value
- UIObject
UIObject element.
- See Also
Methods
Add(UIObject)
Adds an item to the IList.
public void Add(UIObject item)
Parameters
item
UIObjectUIObject item.
- See Also
Clear()
Removes all items from the IList.
public void Clear()
- See Also
Contains(UIObject)
Determines whether the IList contains a specific item.
public bool Contains(UIObject item)
Parameters
item
UIObjectUIObject item.
Returns
- bool
True if the Object is found in the IList. Otherwise returns false.
- See Also
CopyTo(UIObject[], int)
Copies the items of the IList to an Array, starting at a particular Array index.
public void CopyTo(UIObject[] array, int arrayIndex)
Parameters
array
UIObject[]One-dimensional Array that is the destination of the elements.
arrayIndex
intStart index.
- See Also
GetEnumerator()
Returns an enumerator that iterates through a collection.
public IEnumerator<UIObject> GetEnumerator()
Returns
- See Also
IndexOf(UIObject)
Determines the index of a specific item in the IList.
public int IndexOf(UIObject item)
Parameters
item
UIObjectUIObject item.
Returns
- See Also
Insert(int, UIObject)
Inserts an item to the IList at the specified index.
public void Insert(int index, UIObject item)
Parameters
- See Also
Remove(UIObject)
Removes one item from the IList.
public bool Remove(UIObject item)
Parameters
item
UIObject
Returns
- See Also
RemoveAt(int)
Removes the IList item at the specified index.
public void RemoveAt(int index)
Parameters
index
intIndex.
- See Also