Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.v4.3 Assembly / Xceed.Grid Namespace / GridElementStyle Class / ForeColor Property


    ForeColor Property (GridElementStyle)
    Gets or sets the foreground color of the grid element.
    Syntax
    'Declaration
     
    <DescriptionAttribute("The foreground color of the grid element.")>
    <CategoryAttribute("Appearance")>
    <XmlIgnoreAttribute()>
    <ApplyToDesignerAttribute(True)>
    Public Property ForeColor As Color
     
    'Usage
     
    Dim instance As GridElementStyle
    Dim value As Color
     
    instance.ForeColor = value
     
    value = instance.ForeColor

    Property Value

    A System.Drawing.Color structure representing the foreground color to use.
    Remarks

    If set to System.Drawing.Color.Empty, the parent's color is used.

    To reset the value of the ForeColor property to its default value, DefaultForeColor, the ResetForeColor method must be called.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also