System.Windows.Forms.Control.RightToLeft Property

Gets or sets a value indicating whether control's elements are aligned to support locales using right-to-left fonts.

Syntax

[System.ComponentModel.Localizable(true)]
[System.ComponentModel.AmbientValue(System.Windows.Forms.RightToLeft.Inherit)]
public virtual RightToLeft RightToLeft { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The Control.RightToLeft property is an ambient property. An ambient property is a control property that, if not set, is retrieved from the parent control. For example, a System.Windows.Forms.Button will have the same Control.BackColor as its parent System.Windows.Forms.Form by default. For more information about ambient properties, see the System.Windows.Forms.AmbientProperties class or the System.Windows.Forms.Control class overview.

The Control.RightToLeft property is used for international applications where the language is written from right to left, such as Hebrew or Arabic. When this property is set to RightToLeft.Yes, control elements that include text are displayed from right to left.

Note:

If the value of the Control.RightToLeft property is changed at run time, only raw text without formatting is preserved.

The following are a few examples of how control elements are affected by the Control.RightToLeft property value of RightToLeft.Yes :

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0