Gets a default ContentAlignment for the specified IDataField.

Namespace: Dapfor.Net.Ui
Assembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)

Syntax

C#
public static ContentAlignment AutoAlignment(
	Nullable<ContentAlignment> alignment,
	IDataField field
)
Visual Basic
Public Shared Function AutoAlignment ( 
	alignment As Nullable(Of ContentAlignment),
	field As IDataField
) As ContentAlignment
Visual C++
public:
static ContentAlignment AutoAlignment(
	Nullable<ContentAlignment> alignment, 
	IDataField^ field
)
F#
static member AutoAlignment : 
        alignment : Nullable<ContentAlignment> * 
        field : IDataField -> ContentAlignment 

Parameters

alignment
Type: System..::..Nullable<(Of <(<'ContentAlignment>)>)>
The default alignment, specified in the Column.
field
Type: Dapfor.Net.Data..::..IDataField
The data field.

Return Value

Type: ContentAlignment
The ContentAlignment which corresponds to the specified IDataField.

See Also