Share via


DisplayArea.GetFromRect(RectInt32, DisplayAreaFallback) Method

Definition

Gets the DisplayArea where the specified rectangle is present.

public:
 static DisplayArea ^ GetFromRect(RectInt32 rect, DisplayAreaFallback displayAreaFallback);
 static DisplayArea GetFromRect(RectInt32 const& rect, DisplayAreaFallback const& displayAreaFallback);
public static DisplayArea GetFromRect(RectInt32 rect, DisplayAreaFallback displayAreaFallback);
function getFromRect(rect, displayAreaFallback)
Public Shared Function GetFromRect (rect As RectInt32, displayAreaFallback As DisplayAreaFallback) As DisplayArea

Parameters

rect
RectInt32

The rectangle for which to get the DisplayArea.

displayAreaFallback
DisplayAreaFallback

The DisplayArea to use if no DisplayArea is found with the given parameter.

Returns

The DisplayArea where the specified rectangle is present, or the display area indicated by displayAreaFallback if no match is found.

Applies to

See also