19 references to ScreenCaptureMode
System.Windows.Forms (14)
System\Windows\Forms\Form.cs (12)
1750
/// A <see cref="
ScreenCaptureMode
"/> enumeration value indicating the desired capture restriction.
1751
/// The default is <see cref="
ScreenCaptureMode
.Allow"/>.
1756
public
ScreenCaptureMode
FormScreenCaptureMode
1758
get => Properties.GetValueOrDefault(s_propFormScreenCaptureMode,
ScreenCaptureMode
.Allow);
1782
FormScreenCaptureMode !=
ScreenCaptureMode
.Allow;
1785
FormScreenCaptureMode =
ScreenCaptureMode
.Allow;
1787
private void SetScreenCaptureModeInternal(
ScreenCaptureMode
value)
1794
ScreenCaptureMode
.Allow => WINDOW_DISPLAY_AFFINITY.WDA_NONE,
1795
ScreenCaptureMode
.HideWindow => WINDOW_DISPLAY_AFFINITY.WDA_EXCLUDEFROMCAPTURE,
1796
ScreenCaptureMode
.HideContent => WINDOW_DISPLAY_AFFINITY.WDA_MONITOR,
4208
if (FormScreenCaptureMode !=
ScreenCaptureMode
.Allow)
4956
if (FormScreenCaptureMode !=
ScreenCaptureMode
.Allow)
Validation.cs (2)
658
public static void Validate(System.Windows.Forms.
ScreenCaptureMode
enumToValidate, string parameterName = "value")
662
ReportEnumValidationError(parameterName, intValue, typeof(System.Windows.Forms.
ScreenCaptureMode
));
System.Windows.Forms.Design (2)
Validation.cs (2)
658
public static void Validate(System.Windows.Forms.
ScreenCaptureMode
enumToValidate, string parameterName = "value")
662
ReportEnumValidationError(parameterName, intValue, typeof(System.Windows.Forms.
ScreenCaptureMode
));
System.Windows.Forms.Tests (3)
System\Windows\Forms\FormTests.cs (3)
168
Assert.Equal(
ScreenCaptureMode
.Allow, control.FormScreenCaptureMode);
1058
() => formAsControl.FormScreenCaptureMode =
ScreenCaptureMode
.HideContent);
1069
Assert.Throws<InvalidEnumArgumentException>(() => form.FormScreenCaptureMode = (
ScreenCaptureMode
)invalidValue);