Share via


ManagementTabPage.RightToLeftLayout Property

Definition

Gets or sets a value indicating whether right-to-left mirror placement is enabled.

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

Property Value

true if right-to-left mirror placement is turned on; otherwise, false. The default is false.

Examples

The following example demonstrates the RightToLeftLayout property. This code example is part of a larger example provided for the ManagementTabPage class.

// The Change RightToLeftLayout button is clicked.
private void button1_Click(object sender, EventArgs e)
{
    this.ManagementTabPage1.RightToLeftLayout = !this.ManagementTabPage1.RightToLeftLayout;
    OnRightToLeftChanged(e);
    label1.Text = this.ManagementTabPage1.RightToLeftLayout.ToString();
}

Remarks

The RightToLeftLayout property is primarily useful for developing forms for worldwide audiences. Many forms are designed so that controls are laid out in a form in a left-to-right manner. These forms are compatible with languages that follow this writing direction. However, when you display the same forms to users of right-to-left languages, it is often better to reverse the order of the controls in the form.

Applies to