WizardPage.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 example checks the RightToLeftLayout property value before it changes the value.

// Customize the RightToLeftLayout property.
public new bool RightToLeftLayout
{
    get
    {
        return _rightToLeftLayout;
    }
    set
    {
        _rightToLeftLayout = value;
    }
}
// The Right to Left button is clicked.
private void button4_Click(object sender, EventArgs e)
{
    if(RightToLeftLayout)
    {
        RightToLeft = RightToLeft.No;
    }
    else
    {
        RightToLeft = RightToLeft.Yes;
    }
    RightToLeftLayout = !RightToLeftLayout;
}
// The RightToLeft method was called.
protected override void  OnRightToLeftChanged(EventArgs e)
{
    this.button4.Text = "Change R to L Layout : currently " + RightToLeft.ToString();
    base.OnRightToLeftChanged(e);
}

Remarks

The RightToLeftLayout property is primarily useful for developing forms for worldwide audiences. Many forms are designed so that controls are laid out on 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