Düzenle

Aracılığıyla paylaş


Form.FormCornerPreference Property

Definition

Sets or gets the rounding style of the Form's corners using the FormCornerPreference enum.

public:
 property System::Windows::Forms::FormCornerPreference FormCornerPreference { System::Windows::Forms::FormCornerPreference get(); void set(System::Windows::Forms::FormCornerPreference value); };
[System.ComponentModel.Browsable(false)]
[System.Diagnostics.CodeAnalysis.Experimental("WFO5001", UrlFormat="https://aka.ms/winforms-warnings/{0}")]
public System.Windows.Forms.FormCornerPreference FormCornerPreference { get; set; }
[<System.ComponentModel.Browsable(false)>]
[<System.Diagnostics.CodeAnalysis.Experimental("WFO5001", UrlFormat="https://aka.ms/winforms-warnings/{0}")>]
member this.FormCornerPreference : System.Windows.Forms.FormCornerPreference with get, set
Public Property FormCornerPreference As FormCornerPreference

Property Value

Attributes

Remarks

Reading this property is only for tracking purposes. If the Form's corner preference 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 FormCornerPreferenceChanged event is raised accordingly when the value is changed, which allows the property to be participating in binding scenarios.

Applies to