TX Text Control .NET for Windows Forms

DialogLocation Property

Property|Introduced in 26.0
Namespace
TXTextControl.Windows.Forms
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

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.

Syntax

public Point DialogLocation { get; set; }

Examples

The following example uses Sidebar.DialogLocation to configure dialog location as part of the sidebar workflow. The change is then applied to the active document or user interface.

sidebar.DialogLocation = new System.Drawing.Point(20, 20);
sidebar.Update();