Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

RightToLeft Enumeration

Specifies a value indicating whether the text appears from right to left, such as when using Hebrew or Arabic fonts.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public enum RightToLeft
public enum RightToLeft
public enum RightToLeft
 Member nameDescription
InheritThe direction the text read is inherited from the parent control. 
NoThe text reads from left to right. This is the default. 
YesThe text reads from right to left. 

This enumeration is used by ContextMenu, MainMenu, ProgressBar, Regex and Control.

When you retrieve the value of the RightToLeft property from ContextMenu, MainMenu, and ProgressBar you will get the value of RightToLeft you assigned. In contrast, if you are deriving your own class from Control, and you assign a value of Inherit to the RightToLeft property, the value returned will be the setting of the RightToLeft property of the parent control. If there is no parent control, it will return a value of No. Otherwise, it will return a value of Yes or No, depending on the value that you assigned to the RightToLeft property of your derived class.

NoteNote:

For more information about how enabling right-to-left alignment affects Windows Forms controls, see the Control.RightToLeft property.

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.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.