RightToLeft RightToLeft RightToLeft RightToLeft Enum

定义

指定一个值,它指示文本是否从右至左显示,就像使用希伯来或阿拉伯字体时那样。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 Inherit Inherit Inherit 2

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

No No No No 0

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

Yes Yes Yes Yes 1

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

注解

此枚举由ContextMenuMainMenuProgressBarRegexControlThis enumeration is used by ContextMenu, MainMenu, ProgressBar, Regex and Control.

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

适用于