GradientBrush クラス

定義

グラデーションの分岐点で構成されるグラデーションを記述する抽象クラス。

public ref class GradientBrush : Brush
/// [Microsoft.UI.Xaml.Markup.ContentProperty(Name="GradientStops")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GradientBrush : Brush
[Microsoft.UI.Xaml.Markup.ContentProperty(Name="GradientStops")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class GradientBrush : Brush
Public Class GradientBrush
Inherits Brush
継承
Object Platform::Object IInspectable DependencyObject Brush GradientBrush
派生
属性

注釈

GradientStops プロパティを使用して、LinearGradientBrush の色の構成を記述します。各 GradientStopオフセットを指定します。 各 オフセット 値は 0 から 1 の間である必要があります。

の値には、名前付き色または変換構文のいずれかで表される任意の値を指定できます。

GradientBrush 派生クラス

GradientBrush は LinearGradientBrush の親クラスです。

コンストラクター

名前 説明
GradientBrush()

GradientBrush 派生クラスの基本クラス初期化動作を提供します。

プロパティ

名前 説明
ColorInterpolationMode

グラデーションの色の補間方法を指定する ColorInterpolationMode 列挙値を取得または設定します。

ColorInterpolationModeProperty

ColorInterpolationMode 依存関係プロパティを識別します。

Dispatcher

Windows アプリ SDK アプリで常に null を返します。 代わりに DispatcherQueue を使用してください。

(継承元 DependencyObject)
DispatcherQueue

このオブジェクトが関連付けられている DispatcherQueue を取得します。 DispatcherQueueは、コードが非 UI スレッドによって開始された場合でも、UI スレッド上のDependencyObjectにアクセスできる機能を表します。

(継承元 DependencyObject)
GradientStops

ブラシのグラデーションの分岐点を取得または設定します。

GradientStopsProperty

GradientStops 依存関係プロパティを識別します。

MappingMode

グラデーション ブラシの配置座標が出力領域に対して絶対座標か相対座標かを指定する BrushMappingMode 列挙値を取得または設定します。

MappingModeProperty

MappingMode 依存関係プロパティを識別します。

Opacity

ブラシの不透明度を取得または設定 します

(継承元 Brush)
RelativeTransform

相対座標を使用してブラシに適用される変換を取得または設定します。

(継承元 Brush)
SpreadMethod

描画するオブジェクトの境界内で開始または終了するグラデーションを描画する方法を指定する拡散メソッドの種類を取得または設定します。

SpreadMethodProperty

SpreadMethod 依存関係プロパティを識別します。

Transform

ブラシに適用される変換を取得または設定します。

(継承元 Brush)

メソッド

名前 説明
ClearValue(DependencyProperty)

依存関係プロパティのローカル値をクリアします。

(継承元 DependencyObject)
GetAnimationBaseValue(DependencyProperty)

依存関係プロパティに対して確立された基本値を返します。これは、アニメーションがアクティブでない場合に適用されます。

(継承元 DependencyObject)
GetValue(DependencyProperty)

DependencyObject から依存関係プロパティの現在の有効な値を返します。

(継承元 DependencyObject)
PopulatePropertyInfo(String, AnimationPropertyInfo)

アニメーション化できるプロパティを定義します。

(継承元 Brush)
PopulatePropertyInfoOverride(String, AnimationPropertyInfo)

派生クラスでオーバーライドされると、アニメーション化できるプロパティを定義します。

(継承元 Brush)
ReadLocalValue(DependencyProperty)

ローカル値が設定されている場合は、依存関係プロパティのローカル値を返します。

(継承元 DependencyObject)
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)

この DependencyObject インスタンスの特定の DependencyProperty への変更をリッスンするための通知関数を登録します。

(継承元 DependencyObject)
SetValue(DependencyProperty, Object)

DependencyObject の依存関係プロパティのローカル値を設定します。

(継承元 DependencyObject)
UnregisterPropertyChangedCallback(DependencyProperty, Int64)

RegisterPropertyChangedCallback を呼び出して以前に登録した変更通知を取り消します。

(継承元 DependencyObject)

適用対象

こちらもご覧ください