Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.CellType Namespace / FlatCornerHeaderRenderer Class / ActiveForeColor Property
Example


In This Topic
    ActiveForeColor Property (FlatCornerHeaderRenderer)
    In This Topic
    Gets or sets the foreground color of the corner when active or the entire sheet is selected.
    Syntax
    'Declaration
     
    Public Property ActiveForeColor As Color
    'Usage
     
    Dim instance As FlatCornerHeaderRenderer
    Dim value As Color
     
    instance.ActiveForeColor = value
     
    value = instance.ActiveForeColor
    public Color ActiveForeColor {get; set;}
    Example
    This example sets the ActiveForeColor property.
    FarPoint.Win.Spread.CellType.FlatCornerHeaderRenderer flatrender = new FarPoint.Win.Spread.CellType.FlatCornerHeaderRenderer();
    flatrender.ActiveForeColor = Color.YellowGreen;
    flatrender.ActiveMouseOverForeColor = Color.SlateBlue;
    flatrender.TriangleSize = 10;
    flatrender.NormalTriangleColor = Color.Crimson;
    flatrender.GridLineColor = Color.Salmon;
    fpSpread1.ActiveSheet.SheetCorner.DefaultStyle.Renderer = flatrender;
    fpSpread1.ActiveSheet.AllowTableCorner = true;
    Dim flatrender As New FarPoint.Win.Spread.CellType.FlatCornerHeaderRenderer()
    flatrender.ActiveForeColor = Color.YellowGreen
    flatrender.ActiveMouseOverForeColor = Color.SlateBlue
    flatrender.TriangleSize = 10
    flatrender.NormalTriangleColor = Color.Crimson
    flatrender.GridLineColor = Color.Salmon
    fpSpread1.ActiveSheet.SheetCorner.DefaultStyle.Renderer = flatrender
    fpSpread1.ActiveSheet.AllowTableCorner = True
    See Also