Partilhar via


PathFigure.IsFilled Property

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

Gets or sets a value that indicates whether the contained area of this PathFigure is to be used for hit-testing, rendering, and clipping.

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

Syntax

'Declaration
Public Property IsFilled As Boolean
public bool IsFilled { get; set; }
<PathFigure IsFilled="bool"/>

Property Value

Type: System.Boolean
true if the contained area of this PathFigure is to be used for hit-testing, rendering, and clipping; otherwise, false. The default is true.

Remarks

Dependency property identifier field: IsFilledProperty

If this property is set to false, then only the outline of the PathFigure is used, and its contained area does not contribute to the overall area of the PathFigure.

One use of this property is to allow unfilled strokes in an otherwise filled Geometry, like the mouth in the left Smiley below. Setting the mouth's IsFilled to true may produce the undesired effect of the mouth in the right Smiley.

IsFilled Example

smiley path is filled

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.