Converts the ContentAlignment to the horizontal StringAlignment (to be passed into the Alignment 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 ContentToStringAlignment(
	Nullable<ContentAlignment> alignment,
	bool rtl
)
Visual Basic
Public Shared Function ContentToStringAlignment ( 
	alignment As Nullable(Of ContentAlignment),
	rtl As Boolean
) As StringAlignment
Visual C++
public:
static StringAlignment ContentToStringAlignment(
	Nullable<ContentAlignment> alignment, 
	bool rtl
)
F#
static member ContentToStringAlignment : 
        alignment : Nullable<ContentAlignment> * 
        rtl : bool -> StringAlignment 

Parameters

alignment
Type: System..::..Nullable<(Of <(<'ContentAlignment>)>)>
The ContentAlignment.
rtl
Type: System..::..Boolean
if set to true right-to-left layout is used.

Return Value

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

See Also