RightToLeft 枚举


指定一个值,它指示文本是否从右至左显示,就像使用希伯来或阿拉伯字体时那样。Specifies a value indicating whether the text appears from right to left, such as when using Hebrew or Arabic fonts.

public enum class RightToLeft
public enum RightToLeft
type RightToLeft = 
Public Enum RightToLeft


Inherit 2

文本的读取方向从父控件继承。The direction the text read is inherited from the parent control.

No 0

文本从左至右读取。The text reads from left to right. 这是默认设置。This is the default.

Yes 1

文本从右到左读取。The text reads from right to left.


此枚举由、、 ContextMenu MainMenu 和使用 ProgressBar Regex ControlThis enumeration is used by ContextMenu, MainMenu, ProgressBar, Regex and Control.

当你从、和检索属性的值时, RightToLeft ContextMenu MainMenu ProgressBar 将获得你分配的的值 RightToLeftWhen you retrieve the value of the RightToLeft property from ContextMenu, MainMenu, and ProgressBar you will get the value of RightToLeft you assigned. 相反,如果要从派生您自己的类 Control ,并将的值分配 InheritRightToLeft 属性,则返回的值将是父控件的属性的设置 RightToLeftIn 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. 如果没有父控件,它将返回值 NoIf there is no parent control, it will return a value of No. 否则,它将返回或的值 Yes No ,具体取决于你分配给 RightToLeft 派生类的属性的值。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.


有关启用从右到左对齐对 Windows 窗体控件的影响的详细信息,请参阅 Control.RightToLeft 属性。For more information about how enabling right-to-left alignment affects Windows Forms controls, see the Control.RightToLeft property.