Form.FormCaptionTextColor Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets or gets the Form's title bar text color (windows caption text color).
public:
property System::Drawing::Color FormCaptionTextColor { System::Drawing::Color get(); void set(System::Drawing::Color value); };
[System.ComponentModel.Browsable(false)]
[System.Diagnostics.CodeAnalysis.Experimental("WFO5001", UrlFormat="https://aka.ms/winforms-warnings/{0}")]
public System.Drawing.Color FormCaptionTextColor { get; set; }
[<System.ComponentModel.Browsable(false)>]
[<System.Diagnostics.CodeAnalysis.Experimental("WFO5001", UrlFormat="https://aka.ms/winforms-warnings/{0}")>]
member this.FormCaptionTextColor : System.Drawing.Color with get, set
Public Property FormCaptionTextColor As Color
Property Value
The Color, which has be previously set using this property or Empty. Note that the underlying Win32 API does not provide a reliable mechanism to retrieve the current title bar text color.
- Attributes
Remarks
Reading this property is only for tracking purposes. If the Form's title bar's text color (window caption text) is changed through other external means (Win32 calls), reading this property will not reflect those changes, as the Win32 API does not provide a mechanism to retrieve the current title bar color.
The property only reflects the value that was previously set using this property. The FormCaptionTextColorChanged event is raised accordingly when the value is changed, which allows the property to be participating in binding scenarios.
Applies to
.NET