GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoGrid Class / CellColors Property
In This Topic
    CellColors Property
    In This Topic
    Gets or sets an array of colors to be used in drawing grid cell backgrounds.
    Syntax
    [Category("Grid")]
    [Description("The colors used in drawing the cell backgrounds.")]
    public virtual Color[,] CellColors {get; set;}

    Property Value

    A two-dimensional array of Colors. You must not modify the array that is returned by this property. To change any cell colors you must set this property, either by allocating a new array or by cloning the current value, modifying the copy, and then setting this property. When set the grid will keep a copy of the array. Initially the array has zero-by-zero bounds, so there is no cell color.
    Remarks
    This array is used by FillGrid. Typically this array's bounds will have the same values as MajorLineFrequency, or integral multiples of each other, if both are in use.
    See Also