Export (0) Print
Expand All
Expand Minimize

EdgeMode Enumeration

The EdgeMode enumeration determines how the edges of non-text drawing primitives objects are rendered.

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

public enum EdgeMode
public enum EdgeMode
public enum EdgeMode
<object property="EnumerationValue" .../>

 Member nameDescription
AliasedRender the edges of non-text drawing primitives as aliased edges. 
UnspecifiedNo edge mode is specified. Do not alter the current edge mode of non-text drawing primitives. 

Text objects are always displayed by using anti aliasing, and are unaffected by setting the edge mode value. The default value for non-text drawing primitives, such as Ellipse and Polygon, is Unspecified.

When you set the edge mode value of a visual object, all the descendant drawing primitives of the visual object are set to the same edge mode value.

The following example shows how to use the SetEdgeMode method to set the edge mode for a drawing primitive to Aliased.

// Set the edge mode to aliased for the visual and any descendant drawing primitives it has.
RenderOptions.SetEdgeMode((DependencyObject)myVisual, EdgeMode.Aliased);

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

Community Additions

ADD
Show:
© 2014 Microsoft