TX Spell .NET for Windows Forms

Owner Property

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

Description

Gets or sets the IWin32Window that represents the top-level window that will own the dialog form. The default value is null.

Syntax

public IWin32Window Owner { get; set; }

Examples

The following example uses ShowDialogSettings.Owner to configure owner as part of the show dialog settings workflow. The configured value is checked before the workflow continues.

showDialogSettings.Owner = new ButtonBar();
if (showDialogSettings.Owner != null)
{
    Console.WriteLine("Show Dialog Settings: Owner is available.");
}