Skip to content

Commit 9b62a49

Browse files
Undo Experimental tagging of Form-APIs..
1 parent 5ea89b6 commit 9b62a49

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
System.Windows.Forms.FormCornerPreference
2+
System.Windows.Forms.FormCornerPreference.Default = 0 -> System.Windows.Forms.FormCornerPreference
3+
System.Windows.Forms.FormCornerPreference.DoNotRound = 1 -> System.Windows.Forms.FormCornerPreference
4+
System.Windows.Forms.FormCornerPreference.Round = 2 -> System.Windows.Forms.FormCornerPreference
5+
System.Windows.Forms.FormCornerPreference.RoundSmall = 3 -> System.Windows.Forms.FormCornerPreference
6+
virtual System.Windows.Forms.Form.OnFormBorderColorChanged(System.EventArgs! e) -> void
7+
virtual System.Windows.Forms.Form.OnFormCaptionBackColorChanged(System.EventArgs! e) -> void
8+
virtual System.Windows.Forms.Form.OnFormCaptionTextColorChanged(System.EventArgs! e) -> void
9+
virtual System.Windows.Forms.Form.OnFormCornerPreferenceChanged(System.EventArgs! e) -> void

src/System.Windows.Forms/System/Windows/Forms/Form.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2183,7 +2183,6 @@ protected override void SetVisibleCore(bool value)
21832183
[SRDescription(nameof(SR.FormCornerPreferenceDescr))]
21842184
[Browsable(false)]
21852185
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
2186-
[Experimental(DiagnosticIDs.ExperimentalDarkMode, UrlFormat = DiagnosticIDs.UrlFormat)]
21872186
public FormCornerPreference FormCornerPreference
21882187
{
21892188
get => Properties.GetValueOrDefault(s_propFormCornerPreference, FormCornerPreference.Default);
@@ -2221,7 +2220,6 @@ public FormCornerPreference FormCornerPreference
22212220
/// <param name="e">
22222221
/// An <see cref="EventArgs"/> that contains the event data, in this case empty.
22232222
/// </param>
2224-
[Experimental(DiagnosticIDs.ExperimentalDarkMode, UrlFormat = DiagnosticIDs.UrlFormat)]
22252223
protected virtual void OnFormCornerPreferenceChanged(EventArgs e)
22262224
{
22272225
if (Events[s_formCornerPreferenceChanged] is EventHandler eventHandler)
@@ -2230,9 +2228,7 @@ protected virtual void OnFormCornerPreferenceChanged(EventArgs e)
22302228
}
22312229
}
22322230

2233-
#pragma warning disable WFO5001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
22342231
private unsafe void SetFormCornerPreferenceInternal(FormCornerPreference cornerPreference)
2235-
#pragma warning restore WFO5001
22362232
{
22372233
DWM_WINDOW_CORNER_PREFERENCE dwmCornerPreference = cornerPreference switch
22382234
{
@@ -2275,7 +2271,6 @@ private unsafe void SetFormCornerPreferenceInternal(FormCornerPreference cornerP
22752271
[SRDescription(nameof(SR.FormBorderColorDescr))]
22762272
[Browsable(false)]
22772273
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
2278-
[Experimental(DiagnosticIDs.ExperimentalDarkMode, UrlFormat = DiagnosticIDs.UrlFormat)]
22792274
public Color FormBorderColor
22802275
{
22812276
get => Properties.GetValueOrDefault(s_propFormBorderColor, Color.Empty);
@@ -2303,7 +2298,6 @@ public Color FormBorderColor
23032298
/// <param name="e">
23042299
/// An <see cref="EventArgs"/> that contains the event data, in this case empty.
23052300
/// </param>
2306-
[Experimental(DiagnosticIDs.ExperimentalDarkMode, UrlFormat = DiagnosticIDs.UrlFormat)]
23072301
protected virtual void OnFormBorderColorChanged(EventArgs e)
23082302
{
23092303
if (Events[s_formBorderColorChanged] is EventHandler eventHandler)
@@ -2337,7 +2331,6 @@ protected virtual void OnFormBorderColorChanged(EventArgs e)
23372331
[SRDescription(nameof(SR.FormCaptionBackColorDescr))]
23382332
[Browsable(false)]
23392333
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
2340-
[Experimental(DiagnosticIDs.ExperimentalDarkMode, UrlFormat = DiagnosticIDs.UrlFormat)]
23412334
public Color FormCaptionBackColor
23422335
{
23432336
get => Properties.GetValueOrDefault(s_propFormCaptionBackColor, Color.Empty);
@@ -2366,7 +2359,6 @@ public Color FormCaptionBackColor
23662359
/// <param name="e">
23672360
/// An <see cref="EventArgs"/> that contains the event data, in this case empty.
23682361
/// </param>
2369-
[Experimental(DiagnosticIDs.ExperimentalDarkMode, UrlFormat = DiagnosticIDs.UrlFormat)]
23702362
protected virtual void OnFormCaptionBackColorChanged(EventArgs e)
23712363
{
23722364
if (Events[s_formCaptionBackColorChanged] is EventHandler eventHandler)
@@ -2400,7 +2392,6 @@ protected virtual void OnFormCaptionBackColorChanged(EventArgs e)
24002392
[SRDescription(nameof(SR.FormCaptionTextColorDescr))]
24012393
[Browsable(false)]
24022394
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
2403-
[Experimental(DiagnosticIDs.ExperimentalDarkMode, UrlFormat = DiagnosticIDs.UrlFormat)]
24042395
public Color FormCaptionTextColor
24052396
{
24062397
get => Properties.GetValueOrDefault(s_propFormCaptionTextColor, Color.Empty);
@@ -2429,7 +2420,6 @@ public Color FormCaptionTextColor
24292420
/// <param name="e">
24302421
/// An <see cref="EventArgs"/> that contains the event data, in this case empty.
24312422
/// </param>
2432-
[Experimental(DiagnosticIDs.ExperimentalDarkMode, UrlFormat = DiagnosticIDs.UrlFormat)]
24332423
protected virtual void OnFormCaptionTextColorChanged(EventArgs e)
24342424
{
24352425
if (Events[s_formCaptionTextColorChanged] is EventHandler eventHandler)

src/System.Windows.Forms/System/Windows/Forms/FormCornerPreference.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System.Windows.Forms.Analyzers.Diagnostics;
54
using Windows.Win32.Graphics.Dwm;
65

76
namespace System.Windows.Forms;
@@ -10,7 +9,6 @@ namespace System.Windows.Forms;
109
/// Specifies the corner preference for a <see cref="Form"/> which can be
1110
/// set using the <see cref="Form.FormCornerPreference"/> property.
1211
/// </summary>
13-
[Experimental(DiagnosticIDs.ExperimentalDarkMode, UrlFormat = DiagnosticIDs.UrlFormat)]
1412
public enum FormCornerPreference
1513
{
1614
/// <summary>

0 commit comments

Comments
 (0)