Share via


IXRRectangle::SetRadiusY (Windows Embedded CE 6.0)

1/6/2010

This method sets the new y-axis of the ellipse that is used to round the corners of this rectangle object.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetRadiusY(
    float RadiusY
) = 0; 

Parameters

  • RadiusY
    [in] A float value that represents the new y-axis of the ellipse used to round the corners of this rectangle object.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

For the rectangle to have rounded corners, the values retrieved by IXRRectangle::GetRadiusX and IXRRectangle::GetRadiusY must both be nonzero.

A value greater than or equal to zero, and less than or equal to half the width of the rectangle, that describes the y-radius of the ellipse is used to round the corners of the rectangle. Values that are greater than half the width of the rectangle are treated as equal to half the width of the rectangle. Negative values are treated as positive values.

.NET Framework Equivalent

System.Windows.Shapes.Rectangle.RadiusY

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRRectangle
IXRRectangle::GetRadiusY