Class BrushInfoColorList
Represents a class that provides options to save list of System.Drawing.Color objects.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.WinForms.Core
Assembly: Syncfusion.Shared.Base.dll
Syntax
public class BrushInfoColorList : ArrayList, IList, ICollection, IEnumerable, ICloneable, ISerializable
Constructors
BrushInfoColorList()
Initializes a new instance of the BrushInfoColorList class. Overloaded. Creates a new instance of this class.
Declaration
public BrushInfoColorList()
BrushInfoColorList(Color[])
Initializes a new instance of the BrushInfoColorList class with some colors.
Declaration
public BrushInfoColorList(Color[] colors)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color[] | colors | An array of color objects |
BrushInfoColorList(SerializationInfo, StreamingContext)
Initializes a new instance of the BrushInfoColorList class from a serialization stream.
Declaration
protected BrushInfoColorList(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | An object that holds all the data needed to serialize or deserialize this instance. |
System.Runtime.Serialization.StreamingContext | context | Describes the source and destination of the serialized stream specified by info. |
Properties
Item[Int32]
Gets or sets the color at the specified index.
Declaration
public Color this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index value. |
Property Value
Type | Description |
---|---|
System.Drawing.Color | Returns the color value. |
Methods
Clear()
Overridden. See System.Collections.ArrayList.Clear().
Declaration
public override void Clear()
Overrides
GetObjectData(SerializationInfo, StreamingContext)
Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
Declaration
protected virtual void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo to populate with data. |
System.Runtime.Serialization.StreamingContext | context | The destination for this serialization. |
InsertRange(Int32, ICollection)
Overridden. See System.Collections.ArrayList.InsertRange.
Declaration
public override void InsertRange(int index, ICollection c)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which the new elements should be inserted. |
System.Collections.ICollection | c | The System.Collections.ICollection whose elements should be inserted into the System.Collections.ArrayList. The collection itself cannot be null, but it can contain elements that are null. |
Overrides
RemoveRange(Int32, Int32)
Overridden. See System.Collections.ArrayList.RemoveRange.
Declaration
public override void RemoveRange(int index, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which the new elements should be inserted. |
System.Int32 | count | The number of elements to remove. |
Overrides
Explicit Interface Implementations
ISerializable.GetObjectData(SerializationInfo, StreamingContext)
Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
Declaration
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo to populate with data. |
System.Runtime.Serialization.StreamingContext | context | The destination for this serialization. |