TextBackColorDialog Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Invokes the built-in dialog box for setting the background color of the text.
Syntax
public System.Windows.Forms.DialogResult TextBackColorDialog();Public Function TextBackColorDialog() As System.Windows.Forms.DialogResultReturn Value
If the dialog has been left with the Cancel button the return value is DialogResult.Cancel. Otherwise, it is DialogResult.OK.
Examples
The following example opens the text back color dialog for the text control.
var result = textControl.TextBackColorDialog();
Console.WriteLine($"Text Back Color Dialog result: {result}");Dim result = textControl.TextBackColorDialog()
Console.WriteLine($"Text Back Color Dialog result: {result}")