Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

StreamGeometry.FillRule Property

Gets or sets a value that determines how the intersecting areas contained in this StreamGeometry are combined.

Namespace: System.Windows.Media
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public FillRule FillRule { get; set; }
/** @property */
public FillRule get_FillRule ()

/** @property */
public void set_FillRule (FillRule value)

public function get FillRule () : FillRule

public function set FillRule (value : FillRule)

<object FillRule="FillRule" .../>

Property Value

Indicates how the intersecting areas of this StreamGeometry are combined. The default value is EvenOdd.

Identifier Field


Metadata Flags


EvenOdd Determines the "insideness" of a point on the shape by drawing a ray from that point to infinity in any direction and counting the number of path segments from the given shape that the ray crosses. If this number is odd, the point is inside; if even, the point is outside.

NonZero Determines the "insideness" of a point on the shape by drawing a ray from that point to infinity in any direction and then examining the places where a segment of the shape crosses the ray. Starting with a count of zero, add one each time a Segment crosses the ray from left to right and subtract one each time a path segment crosses the ray from right to left. After counting the crossings, if the result is zero then the point is outside the path. Otherwise, it is inside.

FillRule Example

Fill rule illustration

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.