@@ -22,12 +22,12 @@ namespace System.Windows.Forms;
22
22
public sealed partial class Application
23
23
{
24
24
/// <summary>
25
- /// Hash table for our event list.
25
+ /// Hash table for our event list
26
26
/// </summary>
27
27
private static EventHandlerList ? s_eventHandlers ;
28
28
private static Font ? s_defaultFont ;
29
29
/// <summary>
30
- /// Scaled version of non- system <see cref="s_defaultFont"/>.
30
+ /// Scaled version of non system <see cref="s_defaultFont"/>.
31
31
/// </summary>
32
32
private static Font ? s_defaultFontScaled ;
33
33
private static string ? s_startupPath ;
@@ -53,7 +53,7 @@ public sealed partial class Application
53
53
private const int SystemDarkModeDisabled = 1 ;
54
54
55
55
/// <summary>
56
- /// Events the user can hook into.
56
+ /// Events the user can hook into
57
57
/// </summary>
58
58
private static readonly object s_eventApplicationExit = new ( ) ;
59
59
private static readonly object s_eventThreadExit = new ( ) ;
@@ -68,16 +68,16 @@ public sealed partial class Application
68
68
private static bool s_parkingWindowCreated ;
69
69
70
70
/// <summary>
71
- /// This class is static; there is no need to ever create it.
71
+ /// This class is static, there is no need to ever create it.
72
72
/// </summary>
73
73
private Application ( )
74
74
{
75
75
}
76
76
77
77
/// <summary>
78
78
/// Determines if the caller should be allowed to quit the application. This will return false,
79
- /// for example, if being called from a Windows Forms control being hosted within a web browser. The
80
- /// Windows Forms control should not attempt to quit the application.
79
+ /// for example, if being called from a windows forms control being hosted within a web browser. The
80
+ /// windows forms control should not attempt to quit the application.
81
81
/// </summary>
82
82
public static bool AllowQuit => ThreadContext . GetAllowQuit ( ) ;
83
83
@@ -276,7 +276,7 @@ internal static bool CustomThreadExceptionHandlerAttached
276
276
/// </para>
277
277
/// <para>
278
278
/// Note that the dark color mode is only available from Windows 11 on or later versions. If the system
279
- /// is set to a accessibility contrast theme , the dark mode is not available.
279
+ /// is set to a high contrast mode , the dark mode is not available.
280
280
/// </para>
281
281
/// <para>
282
282
/// <b>Note for Visual Basic:</b> If you are using the Visual Basic Application Framework, you should set the
@@ -352,15 +352,14 @@ static void NotifySystemEventsOfColorChange()
352
352
/// <remarks>
353
353
/// <para>
354
354
/// The color setting is determined based on the operating system version and its system settings.
355
- /// It returns <see cref="SystemColorMode.Dark"/> if dark mode is enabled in the system settings,
356
- /// or <see cref="SystemColorMode.Classic"/> if the color mode is set to the light, standard color setting.
355
+ /// It returns <see cref="SystemColorMode.Dark"/> if the dark mode is enabled in the system settings,
356
+ /// <see cref="SystemColorMode.Classic"/> if the color mode equals the light, standard color setting.
357
357
/// </para>
358
358
/// <para>
359
- /// <see cref=" SystemColorMode"/> is supported on Windows 11 or later versions.
359
+ /// SystemColorMode is supported on Windows 11 or later versions.
360
360
/// </para>
361
361
/// <para>
362
- /// <see cref="SystemColorMode"/> is not supported if a Windows OS high contrast theme has been
363
- /// enabled in the system settings.
362
+ /// SystemColorModes is not supported, if the Windows OS <c>High Contrast Mode</c> has been enabled in the system settings.
364
363
/// </para>
365
364
/// </remarks>
366
365
[ Experimental ( DiagnosticIDs . ExperimentalDarkMode , UrlFormat = DiagnosticIDs . UrlFormat ) ]
@@ -399,7 +398,7 @@ private static int GetSystemColorModeInternal()
399
398
400
399
/// <summary>
401
400
/// Gets a value indicating whether the application is running in a dark system color context.
402
- /// Note: With a accessibility contrast theme selected in the OS , this will always return <see langword="false"/>.
401
+ /// Note: In a high contrast mode , this will always return <see langword="false"/>.
403
402
/// </summary>
404
403
[ Experimental ( DiagnosticIDs . ExperimentalDarkMode , UrlFormat = DiagnosticIDs . UrlFormat ) ]
405
404
public static bool IsDarkModeEnabled =>
@@ -915,7 +914,7 @@ internal static void DoEventsModal()
915
914
916
915
/// <summary>
917
916
/// Enables visual styles for all subsequent <see cref="Run()"/> and <see cref="Control.CreateHandle"/> calls.
918
- /// Uses the default theming manifest file shipped with the redistributable package .
917
+ /// Uses the default theming manifest file shipped with the redist .
919
918
/// </summary>
920
919
[ UnconditionalSuppressMessage ( "SingleFile" , "IL3002" , Justification = "Single-file case is handled" ) ]
921
920
public static void EnableVisualStyles ( )
@@ -1329,10 +1328,6 @@ internal static void RunDialog(Form form)
1329
1328
/// This switch determines the default text rendering engine to use by some controls that support
1330
1329
/// switching rendering engine.
1331
1330
/// </summary>
1332
- /// <param name="defaultValue">The default value to use for compatible text rendering.</param>
1333
- /// <exception cref="InvalidOperationException">
1334
- /// Thrown if any window handle has already been created in the application.
1335
- /// </exception>
1336
1331
public static void SetCompatibleTextRenderingDefault ( bool defaultValue )
1337
1332
{
1338
1333
if ( NativeWindow . AnyHandleCreated )
@@ -1344,7 +1339,7 @@ public static void SetCompatibleTextRenderingDefault(bool defaultValue)
1344
1339
}
1345
1340
1346
1341
/// <summary>
1347
- /// Sets the default <see cref="Font"/> for the process.
1342
+ /// Sets the default <see cref="Font"/> for process.
1348
1343
/// </summary>
1349
1344
/// <param name="font">The font to be used as a default across the application.</param>
1350
1345
/// <exception cref="ArgumentNullException"><paramref name="font"/> is <see langword="null"/>.</exception>
@@ -1353,11 +1348,11 @@ public static void SetCompatibleTextRenderingDefault(bool defaultValue)
1353
1348
/// </exception>
1354
1349
/// <remarks>
1355
1350
/// <para>
1356
- /// The system text scale factor will be applied to the font. For example, if the default font is set to "Calibri, 11f"
1357
- /// and the text scale factor is set to 150%, the resulting default font will be set to "Calibri, 16.5f".
1351
+ /// The system text scale factor will be applied to the font, i.e. if the default font is set to "Calibri, 11f"
1352
+ /// and the text scale factor is set to 150% the resulting default font will be set to "Calibri, 16.5f".
1358
1353
/// </para>
1359
1354
/// <para>
1360
- /// Users can adjust text scale with the " Make text bigger" slider on the Settings → Accessibility → Display screen.
1355
+ /// Users can adjust text scale with the Make text bigger slider on the Settings -> Ease of Access -> Vision/ Display screen.
1361
1356
/// </para>
1362
1357
/// </remarks>
1363
1358
/// <seealso href="https://docs.microsoft.com/windows/uwp/design/input/text-scaling">Windows Text scaling</seealso>
@@ -1373,7 +1368,7 @@ public static void SetDefaultFont(Font font)
1373
1368
}
1374
1369
1375
1370
/// <summary>
1376
- /// Scales <see cref="s_defaultFont"/> or <see cref="s_defaultFontScaled"/> if needed.
1371
+ /// Scale <see cref="s_defaultFont"/> or <see cref="s_defaultFontScaled"/> if needed.
1377
1372
/// </summary>
1378
1373
internal static void ScaleDefaultFont ( )
1379
1374
{
0 commit comments