Owner Property
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.asTXSpell. WinForms. SDK TXSpell.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
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; }Public Property Owner As IWin32WindowExamples
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.");
}showDialogSettings.Owner = New ButtonBar()
If showDialogSettings.Owner IsNot Nothing Then
Console.WriteLine("Show Dialog Settings: Owner is available.")
End If