ContentAlignmentExtensionsRtlTranslateContent(ContentAlignment, Boolean) Method

If isRightToLeft is , then mirrors the alignment horizontally.

Definition

Namespace: KGySoft.WinForms
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
public static ContentAlignment RtlTranslateContent(
	this ContentAlignment alignment,
	bool isRightToLeft
)

Parameters

alignment  ContentAlignment
The ContentAlignment to translate.
isRightToLeft  Boolean
to mirror the alignment horizontally; otherwise, .

Return Value

ContentAlignment
The transformed ContentAlignment.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ContentAlignment. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also