RenderOptions.GetBitmapScalingMode(DependencyObject) メソッド

定義

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

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

パラメーター

target
DependencyObject

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

返品

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

属性

例外

指定した targetnull

次の例は、イメージ オブジェクトの BitmapScalingMode を取得する方法を示しています。

// Get the bitmap scaling mode for the image.
BitmapScalingMode bitmapScalingMode = RenderOptions.GetBitmapScalingMode(MyImage);
' Get the bitmap scaling mode for the image.
Dim bitmapScalingMode As BitmapScalingMode = RenderOptions.GetBitmapScalingMode(MyImage)

適用対象

こちらもご覧ください