Xceed Grid for WinForms v4.3 Documentation
AmbientHorizontalAlignment Property (GridElement)


Xceed.Grid.v4.3 Assembly > Xceed.Grid Namespace > GridElement Class : AmbientHorizontalAlignment Property
Gets the ambient value of the grid element's HorizontalAlignment property.
Syntax
'Declaration
 
Protected Overridable ReadOnly Property AmbientHorizontalAlignment As HorizontalAlignment
'Usage
 
Dim instance As GridElement
Dim value As HorizontalAlignment
 
value = instance.AmbientHorizontalAlignment
protected virtual HorizontalAlignment AmbientHorizontalAlignment {get;}

Property Value

A HorizontalAlignment value representing the horizontal alignment of the grid element's content.
Remarks

The ambient value is inherited from the grid element's parent in the case where its own HorizontalAlignment property is not explicitly set.

If the value of the IsHorizontalAlignmentAmbient property is true then both the AmbientHorizontalAlignment and HorizontalAlignment properties will return the same value.

If the grid element does not have an ambient parent, then the value of the DefaultHorizontalAlignment property will be returned.

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

GridElement Class
GridElement Members