RectangleSelectionUtilities.GetWindowRectByTitle Method
Gets the capture area of a specific window by title.
Namespace: Microsoft.Expression.Encoder.ScreenCapture
Assembly: Microsoft.Expression.Encoder (in microsoft.expression.encoder.dll)
Syntax
'Declaration
<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags:=SecurityPermissionFlag.UnmanagedCode)> _
Public Shared Function GetWindowRectByTitle ( _
title As String _
) As Rectangle
'Usage
Dim title As String
Dim returnValue As Rectangle
returnValue = RectangleSelectionUtilities.GetWindowRectByTitle(title)
[SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags=SecurityPermissionFlag.UnmanagedCode)]
public static Rectangle GetWindowRectByTitle (
string title
)
[SecurityPermissionAttribute(SecurityAction::LinkDemand, Flags=SecurityPermissionFlag::UnmanagedCode)]
public:
static Rectangle GetWindowRectByTitle (
String^ title
)
Parameters
title
The title of the window.
Return Value
A rectangle with height and width equal to 0 when the window is not found.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
RectangleSelectionUtilities Class
RectangleSelectionUtilities Members
Microsoft.Expression.Encoder.ScreenCapture Namespace