TX Text Control .NET for Windows Forms

DialogSize 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 size of the dialog where the Sidebar is placed, if the Sidebar.IsPinned property is set to false. To resize the dialog according to its content, the property value must be set to System.Drawing.Size.Empty. The default value is System.Drawing.Size.Empty.

Syntax

public Size DialogSize { get; set; }

Examples

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

sidebar.DialogSize = new System.Drawing.Size(600, 400);
sidebar.Update();