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


In This Topic
    DefaultBackgroundImageAlignment Property (DataRow)
    In This Topic
    Gets the default value of the BackgroundImageAlignment property.
    Syntax
    'Declaration
     
    Protected Overrides ReadOnly Property DefaultBackgroundImageAlignment As ContentAlignment
    'Usage
     
    Dim instance As DataRow
    Dim value As ContentAlignment
     
    value = instance.DefaultBackgroundImageAlignment
    protected override ContentAlignment DefaultBackgroundImageAlignment {get;}

    Property Value

    A value representing the default value of the BackgroundImageAlignment property. Unless overridden, if a style is applied to the datarow and the style's StatelessVisualGridElementStyle.IsBackgroundImageAlignmentDefined is true, BackgroundImageAlignment; otherwise System.Drawing.ContentAlignment.MiddleCenter.
    Remarks

    When overriding DefaultBackgroundImageAlignment in a derived class, the value returned by your implementation should not be dynamic.

    If the base implementation of DefaultBackgroundImageAlignment is not returned in the override, 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