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 Control ます。This enumeration is used by ContextMenu, MainMenu, ProgressBar, Regex and Control.
、、およびからプロパティの値を取得すると、 RightToLeft
ContextMenu 割り当てられた MainMenu 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 の値をプロパティに割り当てると、 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. 親コントロールがない場合は、値が返され No
ます。If 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.