Partager via


XRRect (Compact 2013)

3/28/2014

This structure locates the four sides of a rectangle.

Syntax

struct XRRect{
    float  left;
    float  top;
    float  right;
    float  bottom;
};

Members

  • left
    Indicates the x-coordinate of the left side of the rectangle.
  • top
    Indicates the y-coordinate of the top side of the rectangle.
  • right
    Indicates the x-coordinate of the right side of the rectangle.
  • bottom
    Indicates the y-coordinate of the bottom side of the rectangle.

Remarks

You can use XRRect to specify properties for classes and structures that relate to graphical presentation.

Do not confuse XRRect and IXRRectangle. XRRect is a data structure that you can use to specify rectangular regions as a single property value. However, XRRect has no meaning of its own or any direct UI connotation. The meaning of XRRect depends on how a class handles it as a value for a particular property. In contrast, IXRRectangle is derived from IXRShape and is therefore an IXRUIElement object. You can specify an IXRRectangle as a XAML element and thereby create an instance of a rectangular shape that can process input events.

.NET Framework Equivalent

System.Windows.Rect

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

XAML for Windows Embedded Structures