Xceed Grid for WinForms v4.3 Documentation
AmbientForeColor Property (DataRow)


Xceed.Grid.v4.3 Assembly > Xceed.Grid Namespace > DataRow Class : AmbientForeColor Property
Gets the ambient value of the datarow's ForeColor property.
Syntax
'Declaration
 
Protected Overrides ReadOnly Property AmbientForeColor As Color
'Usage
 
Dim instance As DataRow
Dim value As Color
 
value = instance.AmbientForeColor
protected override Color AmbientForeColor {get;}

Property Value

A System.Drawing.Color structure representing the ambient foreground color of the DataRow.
Remarks

The ambient foreground color is the foreground color inherited from the DataRow's parent in the case where its own ForeColor property is not explicitly set.

If the value of the GridElement.IsForeColorAmbient property is true then both the AmbientForeColor and ForeColor properties will return the same value.

When overriding AmbientForeColor in a derived class, if the base implementation of AmbientForeColor is not returned the alternation of datarow styles will no longer function.
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

Reference

DataRow Class
DataRow Members
Base Implementation in AmbientForeColor