Поделиться через


ArcSegment.Size Property

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

Gets or sets the x- and y-radius of the arc as a Size structure.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Property Size As Size
public Size Size { get; set; }
<ArcSegment Size="width,height"/>

XAML Values

  • width,height
    A double value for a width, a delimiter, and a double value for a height. The delimiter can be either a space or comma. An attribute value for a Size value uses a type converter to process the string.

Property Value

Type: System.Windows.Size
A Size structure that describes the x- and y-radius of the elliptical arc. The Size structure's Width property specifies the arc's x-radius; its Height property specifies the arc's y-radius. The default is a Size with value 0,0.

Remarks

Dependency property identifier field: SizeProperty

Note that the size describes the radius, not the diameter, and therefore the Size value does not also describe the dimensions of a bounding box around the ArcSegment.

The following illustration shows several elliptical arcs that are identical except for their Size settings.

Several ArcSegment objects with different Size settings

ArcSegments with different Size settings

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.