Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.v4.3 Assembly / Xceed.Grid Namespace / DataRow Class / AmbientBackColor Property


In This Topic
    AmbientBackColor Property (DataRow)
    In This Topic
    Gets the ambient value of the datarow's BackColor property.
    Syntax
    'Declaration
     
    Protected Overrides ReadOnly Property AmbientBackColor As Color
    'Usage
     
    Dim instance As DataRow
    Dim value As Color
     
    value = instance.AmbientBackColor
    protected override Color AmbientBackColor {get;}

    Property Value

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

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

    If the value of the GridElement.IsBackColorAmbient property is true then both the AmbientBackColor and BackColor properties will return the same value.

    When overriding AmbientBackColor in a derived class, if the base implementation of AmbientBackColor 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