Converts the ContentAlignment to the vertical StringAlignment (to be passed into the LineAlignment property of the StringFormat object).

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

Syntax

C#
public static StringAlignment ContentToStringLineAlignment(
	Nullable<ContentAlignment> alignment
)
Visual Basic
Public Shared Function ContentToStringLineAlignment ( 
	alignment As Nullable(Of ContentAlignment)
) As StringAlignment
Visual C++
public:
static StringAlignment ContentToStringLineAlignment(
	Nullable<ContentAlignment> alignment
)
F#
static member ContentToStringLineAlignment : 
        alignment : Nullable<ContentAlignment> -> StringAlignment 

Parameters

alignment
Type: System..::..Nullable<(Of <(<'ContentAlignment>)>)>
The ContentAlignment.

Return Value

Type: StringAlignment
The StringAlignment. If the alignment is null, then the Center value is returned.

See Also