次の方法で共有


RenderOptions.GetCacheInvalidationThresholdMinimum(DependencyObject) メソッド

定義

指定した依存関係オブジェクトの CacheInvalidationThresholdMinimum 添付プロパティの値を返します。

public:
 static double GetCacheInvalidationThresholdMinimum(System::Windows::DependencyObject ^ target);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.Media.TileBrush))]
public static double GetCacheInvalidationThresholdMinimum (System.Windows.DependencyObject target);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.Media.TileBrush))>]
static member GetCacheInvalidationThresholdMinimum : System.Windows.DependencyObject -> double
Public Shared Function GetCacheInvalidationThresholdMinimum (target As DependencyObject) As Double

パラメーター

target
DependencyObject

CacheInvalidationThresholdMinimum 添付プロパティの値を取得する対象の依存関係オブジェクト。

戻り値

Double

指定した依存関係オブジェクトの CacheInvalidationThresholdMinimum 添付プロパティの現在値。

属性

例外

指定された targetnull です。

次の例は、次のキャッシュ ヒント値を取得する方法を DrawingBrush示しています。

// Get the caching hint option for the brush.
CachingHint cachingHint = RenderOptions.GetCachingHint(drawingBrush);

if (cachingHint == CachingHint.Cache)
{
    // Get the minimum and maximum relative sizes for regenerating the tiled brush.
    double minimum = RenderOptions.GetCacheInvalidationThresholdMinimum(drawingBrush);
    double maximum = RenderOptions.GetCacheInvalidationThresholdMaximum(drawingBrush);

    // Perform action based on cache values...
}
' Get the caching hint option for the brush.
Dim cachingHintOpt As CachingHint = RenderOptions.GetCachingHint(drawingBrush)

If cachingHintOpt = CachingHint.Cache Then
    ' Get the minimum and maximum relative sizes for regenerating the tiled brush.
    Dim minimum As Double = RenderOptions.GetCacheInvalidationThresholdMinimum(drawingBrush)
    Dim maximum As Double = RenderOptions.GetCacheInvalidationThresholdMaximum(drawingBrush)

    ' Perform action based on cache values...
End If

適用対象

こちらもご覧ください