alexa
menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class BrushInfoColorList

    Represents a class that provides options to save list of System.Drawing.Color objects.

    Inheritance
    System.Object
    BrushInfoColorList
    Implements
    System.Runtime.Serialization.ISerializable
    Namespace: Syncfusion.WinForms.Core
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public class BrushInfoColorList : ArrayList, 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()

    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.

    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.

    Implements

    System.Runtime.Serialization.ISerializable
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved