TabControl.RightToLeftLayout 屬性


取得或設定值,指出是否已開啟右到左的左右反轉位置。Gets or sets a value indicating whether right-to-left mirror placement is turned on.

 virtual property bool RightToLeftLayout { bool get(); void set(bool value); };
public virtual bool RightToLeftLayout { get; set; }
member this.RightToLeftLayout : bool with get, set
Public Overridable Property RightToLeftLayout As Boolean


如果已開啟右到左的左右反轉位置,則為 true,如果是標準子控制項位置,則為 falsetrue if right-to-left mirror placement is turned on; false for standard child control placement. 預設值為 falseThe default is false.


RightToLeftLayout 屬性主要適用于為全球各地的使用者開發表單。The RightToLeftLayout property is primarily useful for developing forms for worldwide audiences. 許多容器的設計都是為了讓控制項以從左至右的方式配置到容器中。Many containers are designed so that controls are laid out in the container in a left-to-right fashion. 這些容器與遵循此書寫方向的語言相容。These containers are compatible with languages that follow this writing direction. 不過,當您向由右至左的語言向使用者顯示相同的容器時,通常最好是反轉表單上控制項的順序。However, when you display the same containers to users of right-to-left languages, it is often preferable to reverse the order of the controls on the form. 如果同時 true[RightToLeftLayout] 和 [RightToLeft] 屬性,則會針對容器和控制項位置開啟鏡像,而文字流程將會由右至左。If both the RightToLeftLayout and RightToLeft properties are true, mirroring will be turned on for the container and control placement and text flow will be right-to-left.

變更這個屬性的值會引發 RightToLeftLayoutChanged 事件。Changing the value of this property raises the RightToLeftLayoutChanged event.

如需全球化問題的詳細資訊,請參閱開發可供全球應用程式的最佳作法For more information about globalization issues, see Best Practices for Developing World-Ready Applications.