Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ Namespace Microsoft.VisualBasic.ApplicationServices
End Sub

''' <summary>
''' Setting this property inside the event handler determines the
''' <see cref="Application.ColorMode"/> for the application.
''' Setting this property inside the event handler determines the application's
''' <see cref="Application.ColorMode"/>. Use this property to control whether the application
''' uses dark mode, classic mode, or system default for its lifecycle.
''' </summary>
Public Property ColorMode As SystemColorMode

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,25 @@
namespace System.Windows.Forms;

/// <summary>
/// Enumeration defining the behavior when a form or control is captured in a screenshot.
/// Enumeration defining the behavior when a form is attempted to be captured in a screen capture (clipboard, image file),
/// in a screen sharing video conference scenario, a video recording or the alike.
Comment on lines +7 to +8
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears a bit convoluted. Consider:
An enumeration specifying the behavior of a form when an attempt is made to capture it via screenshot, clipboard, image export, screen-sharing during a video conference, video recording, or similar methods.

/// </summary>
public enum ScreenCaptureMode
{
/// <summary>
/// The form or control can be captured normally in screenshots. Default.
/// The form can be captured normally in screen captures.
/// Default setting.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default shouldn't be specified here, it should be specified on the property using this enum.

/// </summary>
Allow = 0,

/// <summary>
/// The form or control appears blacked out in screenshots.
/// Only the form's content is hidden in screenshots.
/// The form's borders and title bar remain visible.
/// </summary>
HideContent = 1,

/// <summary>
/// The form or control appears blurred in screenshots.
/// The whole form is invisible in screenshots.
/// </summary>
/// <remarks>
/// <para>
/// Using this option requires Windows 10 version 2004 or higher.
/// </para>
/// </remarks>
HideWindow = 2
}