DialogSize Property
- Namespace
TXTextControl.Windows. Forms
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
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; }Public Property DialogSize As SizeExamples
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();sidebar.DialogSize = New System.Drawing.Size(600, 400)
sidebar.Update()