Udostępnij za pośrednictwem


RadiusY (RadialGradientBrush)

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

Gets or sets the vertical radius of the outermost circle of a radial gradient.

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

Property Value

Type: Double

The vertical radius of the outermost circle of a radial gradient.

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

Managed Equivalent

RadiusY

Remarks

The MappingMode property of a RadialGradientBrush determines whether the properties of the brush are interpreted as relative or absolute values. By default, RadiusY is treated as relative, which corresponds to a MappingMode of RelativeToBoundingBox. In this case, the default RadiusY value of 0.5 combined with the default Center value of 0.5,0.5 results in a circle as high as the area where the brush is applied, centered exactly on the middle of that area. A MappingMode of Absolute specifies that the RadiusY 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