DisplayArea.GetFromRect(RectInt32, DisplayAreaFallback) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.