UtilUIAutomationSetWindowOpacity(IntPtr, Int32) Method

Sets the opacity of the specified window.

Definition

Namespace: DevCase.Core.Diagnostics.Processes
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static bool SetWindowOpacity(
	IntPtr hWnd,
	int opacity
)

Parameters

hWnd  IntPtr
The window handle.
opacity  Int32
The window opacity.

The valid range is from 0 to 100.

Return Value

Boolean
If the function succeeds, the return value is .

If the function fails, the return value .

Exceptions

ArgumentOutOfRangeException opacity;Value in range of 0 to 100 is required.

See Also