ContentAlignmentExtensionsRtlTranslateContent(ContentAlignment, Control) Method

Calls the protected Control.RtlTranslateContent method as if it was a public method. It also applies a workaround for a Mono bug when the internal field value is Inherit.

Definition

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

Parameters

alignment  ContentAlignment
The alignment to translate if needed.
instance  Control
The Control instance.

Return Value

ContentAlignment
The translated alignment.

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