Partager via


RadiusX (RadialGradientBrush)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the horizontal radius of the outermost circle of the radial gradient.

<object RadiusX="Double"  .../>
value = object.RadiusX
object.RadiusX = value

Property Value

Type: Double

The horizontal radius of the outermost circle of the radial gradient.

This property is read/write. The default value is 0.5.

Managed Equivalent

RadiusX

Remarks

The MappingMode property of a RadialGradientBrush determines whether the properties of the brush are interpreted as relative or absolute values. By default, RadiusX is treated as relative, which corresponds to a MappingMode of RelativeToBoundingBox. In this case, the default RadiusX value of 0.5 combined with the default Center value of 0.5,0.5 results in a circle as wide as the area where the brush is applied, centered exactly on the middle of that area. A MappingMode of Absolute specifies that the RadiusX value is expressed in device-independent pixels, instead of being relative to the bounding box of the area where the brush is applied.

Applies To

RadialGradientBrush

See Also

Reference