Gets or sets the location of the dialog where the Sidebar is placed, if the Sidebar.IsPinned property is set to false. To place the dialog into the center of the top most control, the property value must be set to System.Drawing.Point.Empty. The default value is System.Drawing.Point.Empty.


public System.Drawing.Point DialogLocation { get; set; }
Public Property DialogLocation() As System.Drawing.Point


This example describes the TXTextControl.Windows.Forms.Sidebar.DialogLocation property. Here, it is set to System.Drawing.Point.Empty - -which is also the default value.

TXTextControl.Windows.Forms.Sidebar sidebar = new TXTextControl.Windows.Forms.Sidebar();
sidebar.ShowPinButton = false;
sidebar.IsPinned = false;  // must be set to false 
sidebar.IsShown = false;
sidebar.IsSizable = false;
sidebar.ShowTitle = false; 
sidebar.TitleFont = new System.Drawing.Font("Times New Roman", 12 ); 
sidebar.Text = "mySidebarText"; // here, the Text property is set
sidebar.DialogStyle = TXTextControl.Windows.Forms.Sidebar.SidebarDialogStyle.Standard; 
sidebar.DialogSize = System.Drawing.Size.Empty; 
sidebar.DialogLocation = System.Drawing.Point.Empty; // here, the DialogLocation property is set
Dim sidebar As TXTextControl.Windows.Forms.Sidebar = New TXTextControl.Windows.Forms.Sidebar()
sidebar.ShowPinButton = False
sidebar.IsPinned = False ' must be set to false 
sidebar.IsShown = False
sidebar.IsSizable = False
sidebar.ShowTitle = False
sidebar.TitleFont = New System.Drawing.Font("Times New Roman", 12)
sidebar.Text = "mySidebarText"
sidebar.DialogStyle = TXTextControl.Windows.Forms.Sidebar.SidebarDialogStyle.Standard
sidebar.DialogSize = System.Drawing.Size.Empty
sidebar.DialogLocation = System.Drawing.Point.Empty ' here, the DialogLocation property is set