ManagementPanel.RightToLeftLayout Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 ManagementPanel class.
// The Change RightToLeftLayout button is clicked.
private void button1_Click(object sender, EventArgs e)
{
this.ManagementPanel1.RightToLeftLayout = !this.ManagementPanel1.RightToLeftLayout;
OnRightToLeftChanged(e);
label1.Text = this.ManagementPanel1.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.