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"/>. 1756public ScreenCaptureMode FormScreenCaptureMode 1758get => Properties.GetValueOrDefault(s_propFormScreenCaptureMode, ScreenCaptureMode.Allow); 1782FormScreenCaptureMode != ScreenCaptureMode.Allow; 1785FormScreenCaptureMode = ScreenCaptureMode.Allow; 1787private void SetScreenCaptureModeInternal(ScreenCaptureMode value) 1794ScreenCaptureMode.Allow => WINDOW_DISPLAY_AFFINITY.WDA_NONE, 1795ScreenCaptureMode.HideWindow => WINDOW_DISPLAY_AFFINITY.WDA_EXCLUDEFROMCAPTURE, 1796ScreenCaptureMode.HideContent => WINDOW_DISPLAY_AFFINITY.WDA_MONITOR, 4208if (FormScreenCaptureMode != ScreenCaptureMode.Allow) 4956if (FormScreenCaptureMode != ScreenCaptureMode.Allow)
Validation.cs (2)
658public static void Validate(System.Windows.Forms.ScreenCaptureMode enumToValidate, string parameterName = "value") 662ReportEnumValidationError(parameterName, intValue, typeof(System.Windows.Forms.ScreenCaptureMode));
System.Windows.Forms.Design (2)
Validation.cs (2)
658public static void Validate(System.Windows.Forms.ScreenCaptureMode enumToValidate, string parameterName = "value") 662ReportEnumValidationError(parameterName, intValue, typeof(System.Windows.Forms.ScreenCaptureMode));
System.Windows.Forms.Tests (3)
System\Windows\Forms\FormTests.cs (3)
168Assert.Equal(ScreenCaptureMode.Allow, control.FormScreenCaptureMode); 1058() => formAsControl.FormScreenCaptureMode = ScreenCaptureMode.HideContent); 1069Assert.Throws<InvalidEnumArgumentException>(() => form.FormScreenCaptureMode = (ScreenCaptureMode)invalidValue);