Control.RightToLeft Property
Assembly: System.Windows.Forms (in system.windows.forms.dll)
[LocalizableAttribute(true)] public: virtual property RightToLeft RightToLeft { RightToLeft get (); void set (RightToLeft value); }
/** @property */ public RightToLeft get_RightToLeft () /** @property */ public void set_RightToLeft (RightToLeft value)
public function get RightToLeft () : RightToLeft public function set RightToLeft (value : RightToLeft)
Not applicable.
Property Value
One of the RightToLeft values. The default is Inherit.The 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 Button will have the same BackColor as its parent Form by default. For more information about ambient properties, see the AmbientProperties class or the Control class overview.
The 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 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 RightToLeft property value of RightToLeft.Yes :
-
Vertical scroll bars are displayed on the left side rather than right side of scrollable controls (for example, Form, Panel, multiline TextBox, and RichTextBox).
-
Horizontal scroll bars start with the scroll box (thumb) right-aligned.
-
The check box element alignment, controlled by the CheckAlign property, is reversed for CheckBox and RadioButton controls.
-
Items in list box, combo box, and up-down controls are right aligned.
-
Up and down buttons are left-aligned on NumericUpDown and DomainUpDown controls.
-
Menus (MainMenu, MenuItem, and ContextMenu) are displayed right-aligned.
-
The alignment of toolbar buttons on a ToolBar control or the alignment of text on a ToolBarButton is not affected by the RightToLeft property.
-
AxHost supports right-to-left alignment; however, the effect on an ActiveX control depends on the extent to which the control author implemented support for right-to-left display.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Note: