Class ChartImageCollection
Collection of Image instances.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Chart
Assembly: Syncfusion.Chart.Base.dll
Syntax
public class ChartImageCollection : CollectionBase, IList, ICollection, IEnumerable
Constructors
ChartImageCollection()
Initializes a new instance of the ChartImageCollection.
Declaration
public ChartImageCollection()
ChartImageCollection(IList)
Initializes a new instance of the ChartImageCollection with collection of images.
Declaration
public ChartImageCollection(IList source)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IList | source | Collection of images to copy to array. |
Properties
Item[Int32]
Gets image by specified index in collection.
Declaration
public Image this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type | Description |
---|---|
System.Drawing.Image | The position into which the new element was inserted. |
Methods
Add(Image)
Add image to collection.
Declaration
public int Add(Image image)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Image | image | Image to add. |
Returns
Type | Description |
---|---|
System.Int32 | Index of added image. |
AddFromList(IList)
Adds image from a list to the collection.
Declaration
public void AddFromList(IList list)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IList | list | The list. |
AddRange(Image[])
Adds an array of images to this collection.
Declaration
public void AddRange(Image[] image)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Image[] | image |
Contains(Image)
Check collection to constrains image.
Declaration
public bool Contains(Image image)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Image | image | Image to check. |
Returns
Type | Description |
---|---|
System.Boolean | True if collection constrains image, otherwise false. |
CopyTo(Image[], Int32)
Copies the images to a one dimensional array starting at the specified index of the target array.
Declaration
public void CopyTo(Image[] images, int index)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Image[] | images | Destination array where the elements are to be stored. |
System.Int32 | index | Index value from which copy is to start. |
IndexOf(Image)
Returns the index of the specified image.
Declaration
public int IndexOf(Image image)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Image | image | Image to get index. |
Returns
Type | Description |
---|---|
System.Int32 | Index of given image. If collection doesn't constrains image return -1. |
Insert(Int32, Image)
Inserts the image at the specified index.
Declaration
public void Insert(int index, Image image)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index to insert image. |
System.Drawing.Image | image | Image to insert. |
MakeTransparent(Color)
At this moment all images in this collection is Bitmaps and this color is transparent color.
Declaration
public void MakeTransparent(Color color)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | color | Color to make transparent. |
Remove(Image)
Removes the image from the list.
Declaration
public void Remove(Image image)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Image | image | Image to remove. |