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.

注解

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

RightToLeft当你从ContextMenuMainMenu RightToLeft和检索属性的值时,将获得你分配的的值。ProgressBarWhen you retrieve the value of the RightToLeft property from ContextMenu, MainMenu, and ProgressBar you will get the value of RightToLeft you assigned. 相反Control, 如果要从派生您自己的类, 并将的Inherit值分配给RightToLeft属性, 则返回的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.

适用于