Class ShapeCollection
Represents shape collection
Implements
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
Inherited Members
System.Collections.CollectionBase.Capacity
System.Collections.CollectionBase.Clear()
System.Collections.CollectionBase.Count
System.Collections.CollectionBase.GetEnumerator()
System.Collections.CollectionBase.InnerList
System.Collections.CollectionBase.List
System.Collections.CollectionBase.OnClear()
System.Collections.CollectionBase.OnClearComplete()
System.Collections.CollectionBase.OnInsert(System.Int32, System.Object)
System.Collections.CollectionBase.OnRemove(System.Int32, System.Object)
System.Collections.CollectionBase.OnSet(System.Int32, System.Object, System.Object)
System.Collections.CollectionBase.OnValidate(System.Object)
System.Collections.CollectionBase.RemoveAt(System.Int32)
System.Collections.CollectionBase.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.CollectionBase.System.Collections.ICollection.IsSynchronized
System.Collections.CollectionBase.System.Collections.ICollection.SyncRoot
System.Collections.CollectionBase.System.Collections.IList.Add(System.Object)
System.Collections.CollectionBase.System.Collections.IList.Contains(System.Object)
System.Collections.CollectionBase.System.Collections.IList.get_Item(System.Int32)
System.Collections.CollectionBase.System.Collections.IList.IndexOf(System.Object)
System.Collections.CollectionBase.System.Collections.IList.Insert(System.Int32, System.Object)
System.Collections.CollectionBase.System.Collections.IList.IsFixedSize
System.Collections.CollectionBase.System.Collections.IList.IsReadOnly
System.Collections.CollectionBase.System.Collections.IList.Item[System.Int32]
System.Collections.CollectionBase.System.Collections.IList.Remove(System.Object)
System.Collections.CollectionBase.System.Collections.IList.set_Item(System.Int32, System.Object)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.DLS.Collections
Assembly: Syncfusion.DLS.Base.dll
Syntax
public class ShapeCollection : EntityCollectionBase, IXDLSSerializableCollection, ICollectionBase, IList, ICollection, IEnumerable
Constructors
ShapeCollection(Canvas)
Initializing constructor
Declaration
protected ShapeCollection(Canvas canvas)
Parameters
Type | Name | Description |
---|---|---|
Canvas | canvas |
Properties
Item[Int32]
Get Shape by index
Declaration
public Shape this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type |
---|
Shape |
TagItemName
Gets name of xml tag
Declaration
public override string TagItemName { get; }
Property Value
Type |
---|
System.String |
Overrides
Methods
Add(Shape)
Adds Shape to collection
Declaration
public int Add(Shape shape)
Parameters
Type | Name | Description |
---|---|---|
Shape | shape |
Returns
Type |
---|
System.Int32 |
Contains(Shape)
Checks if shape already exists in the collection.
Declaration
public bool Contains(Shape shape)
Parameters
Type | Name | Description |
---|---|---|
Shape | shape | Shape object. |
Returns
Type | Description |
---|---|
System.Boolean | True - if shape already exists in the collection, False otherwise. |
CreateItem(IXDLSContentReader)
Declaration
protected override object CreateItem(IXDLSContentReader reader)
Parameters
Type | Name | Description |
---|---|---|
IXDLSContentReader | reader |
Returns
Type |
---|
System.Object |
Overrides
IndexOf(Shape)
Returns index of the shape object in the collection.
Declaration
public int IndexOf(Shape shape)
Parameters
Type | Name | Description |
---|---|---|
Shape | shape | Shape object. |
Returns
Type | Description |
---|---|
System.Int32 | Index of the shape object in the collection. |
Insert(Int32, Shape)
Inserts shape into collection at the specified index.
Declaration
public void Insert(int index, Shape shape)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of the shape in the collection. |
Shape | shape | Shape to be inserted in the collection. |
Remove(Shape)
Removes shape from the collection.
Declaration
public void Remove(Shape shape)
Parameters
Type | Name | Description |
---|---|---|
Shape | shape | Shape object. |
Implements
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable