This topic has not yet been rated - Rate this topic

RenderOptions Class

Updated: November 2010

Provides options for controlling the rendering behavior of objects.

System.Object
  System.Windows.Media.RenderOptions

Namespace:  System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)
public static class RenderOptions

The RenderOptions type exposes the following members.

  Name Description
Public property Static member ProcessRenderMode Specifies the render mode preference for the current process.
Top
  Name Description
Public attached property BitmapScalingMode Gets or sets the BitmapScalingMode for a given DependencyObject.
Public attached property CacheInvalidationThresholdMaximum Gets or sets the cache invalidation threshold maximum value for a given DependencyObject.
Public attached property CacheInvalidationThresholdMinimum Gets or sets the cache invalidation threshold minimum value for a given DependencyObject.
Public attached property CachingHint Gets or sets a value that indicates that rendered content should be cached when possible.
Public attached property ClearTypeHint Gets or sets a value that indicates to the rendering engine whether text can be rendered with ClearType.
Public attached property EdgeMode Gets or sets the EdgeMode enumeration value for a non-text primitive that determines how its edges are rendered.
Top
  Name Description
Public method Static member GetBitmapScalingMode Returns the value of the BitmapScalingMode attached property for a specified dependency object.
Public method Static member GetCacheInvalidationThresholdMaximum Returns the value of the CacheInvalidationThresholdMaximum attached property for a specified dependency object.
Public method Static member GetCacheInvalidationThresholdMinimum Returns the value of the CacheInvalidationThresholdMinimum attached property for a specified dependency object.
Public method Static member GetCachingHint Returns the value of the CachingHint attached property for a specified dependency object.
Public method Static member GetClearTypeHint Gets the value of the ClearTypeHint attached property of the specified element.
Public method Static member GetEdgeMode Returns the value of the EdgeMode attached property for a specified dependency object.
Public method Static member SetBitmapScalingMode Sets the value of the BitmapScalingMode attached property on a specified dependency object.
Public method Static member SetCacheInvalidationThresholdMaximum Sets the value of the CacheInvalidationThresholdMaximum attached property on a specified dependency object.
Public method Static member SetCacheInvalidationThresholdMinimum Sets the value of the CacheInvalidationThresholdMinimum attached property on a specified dependency object.
Public method Static member SetCachingHint Sets the value of the CachingHint attached property on a specified dependency object.
Public method Static member SetClearTypeHint Sets the value of the ClearTypeHint attached property of the specified element.
Public method Static member SetEdgeMode Sets the value of the EdgeMode attached property on a specified dependency object.
Top
  Name Description
Public field Static member BitmapScalingModeProperty Identifies the BitmapScalingMode attached property.
Public field Static member CacheInvalidationThresholdMaximumProperty Identifies the CacheInvalidationThresholdMaximum attached property.
Public field Static member CacheInvalidationThresholdMinimumProperty Identifies the CacheInvalidationThresholdMinimum attached property.
Public field Static member CachingHintProperty Identifies the CachingHint attached property.
Public field Static member ClearTypeHintProperty Identifies the ClearTypeHint attached property.
Public field Static member EdgeModeProperty Identifies the EdgeMode attached property.
Top

You can use the attached properties of the RenderOptions class to specify options for the rendering of text and visual elements in your WPF application. These options enable you to optimize rendering for speed or quality.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Date

History

Reason

November 2010

Updated Remarks section.

Information enhancement.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ