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


    ForeColor Property (GridElement)
    Gets or sets the foreground color of the grid element.
    Syntax
    'Declaration
     
    <DescriptionAttribute("The foreground color of the grid element.")>
    <CategoryAttribute("Appearance")>
    <ApplyToDesignerAttribute(True)>
    Public Property ForeColor As Color
     
    'Usage
     
    Dim instance As GridElement
    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 the IsForeColorAmbient property returns true, then the value of the ForeColor property is inherited from its parent.

    To reset the value of the ForeColor property to its default value, DefaultForeColor, the ResetForeColor method must be called or System.Drawing.Color.Empty assigned to the ForeColor property.

    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