Share via


IXRRectangle::SetRadiusX (Compact 2013)

3/28/2014

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

Syntax

virtual HRESULT STDMETHODCALLTYPE SetRadiusX(
    float RadiusX
) = 0; 

Parameters

  • RadiusX
    [in] A float value that represents the new x-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 x-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.RadiusX

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRRectangle
IXRRectangle::GetRadiusX