Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / IInterior Interface / ColorIndex Property


In This Topic
    ColorIndex Property (IInterior)
    In This Topic
    Gets or sets the color of the interior as an index into the current color palette, or as one of the following constants: Color.ColorIndexAutomatic or Color.ColorIndexNone.
    Syntax
    'Declaration
     
    
    Property ColorIndex As Integer
    'Usage
     
    
    Dim instance As IInterior
    Dim value As Integer
     
    instance.ColorIndex = value
     
    value = instance.ColorIndex
    int ColorIndex {get; set;}

    Property Value

    An integer value represents the index of the color.
    Remarks
    The value returned by ColorIndex is different than the stored value from the internal storage.

    Set this property to Color.ColorIndexAutomatic to specify the automatic color for cells or the automatic fill style for drawing objects.

    Set this property to Color.ColorIndexNone to specify that you don't want a color.

    See Also