次の方法で共有


IXRRectangleGeometry (Compact 2013)

3/28/2014

This class describes a graphic representation of a two-dimensional rectangle.

Syntax

class IXRRectangleGeometry : public IXRGeometry

Inheritance Hierarchy

IXRDependencyObject

  IXRGeometry

    IXRRectangleGeometry

Methods

In addition to the methods inherited from IXRGeometry, this class contains the following methods.

Name

Description

IXRRectangleGeometry::GetRadiusX

Retrieves the x-radius of the ellipse that rounds the corners of a rectangle.

IXRRectangleGeometry::GetRadiusY

Retrieves the y-radius of the ellipse that rounds the corners of a rectangle.

IXRRectangleGeometry::GetRect

Retrieves the dimensions of a rectangle.

IXRRectangleGeometry::SetRadiusX

Sets the x-radius of the ellipse that rounds the corners of a rectangle.

IXRRectangleGeometry::SetRadiusY

Sets the y-radius of the ellipse that rounds the corners of a rectangle.

IXRRectangleGeometry::SetRect

Sets the dimensions of a rectangle.

Thread Safety

Members of this class are thread-safe if you previously called IXRApplication::CreateHostFromXaml and supplied it with an XRWindowCreateParams structure that has AllowsMultipleThreadAccess set to true.

Remarks

When you create a class instance, use an IXRRectangleGeometryPtr smart pointer instead of a raw interface pointer. For more information, see XRPtr<Interface>.

You can also define an IXRRectangleGeometry object in Microsoft Silverlight 3 XAML. For information about the differences between XAML in XAML for Windows Embedded and Silverlight 3, see Differences Between Microsoft Silverlight 3 and XAML for Windows Embedded. For more information about how to define this element in the source XAML for your application, see the RectangleGeometry Class on MSDN.

.NET Framework Equivalent

System.Windows.Media.RectangleGeometry

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for Visual Appearance