UIScrollView.GetAppearance メソッド

定義

オーバーロード

GetAppearance(UITraitCollection, Type[])

包含階層で見つかった場合に、指定された の外観プロキシをcontainers返しますtraits

GetAppearance(UITraitCollection)

指定した の外観プロキシを返します traits

GetAppearance<T>()

UIScrollView のサブクラスの外観プロキシ UIScrollView.UIScrollViewAppearance を取得します。

GetAppearance<T>(UITraitCollection)

UIScrollView のサブクラスの外観プロキシ UIScrollView.UIScrollViewAppearance を取得します。

GetAppearance<T>(UITraitCollection, Type[])

ビューが指定された階層でホストされている場合に、指定した特性コレクションを持つ UIScrollView のサブクラスの外観プロキシ UIScrollView.UIScrollViewAppearance を取得します。

GetAppearance(UITraitCollection, Type[])

包含階層で見つかった場合に、指定された の外観プロキシをcontainers返しますtraits

public static UIKit.UIScrollView.UIScrollViewAppearance GetAppearance (UIKit.UITraitCollection traits, params Type[] containers);
static member GetAppearance : UIKit.UITraitCollection * Type[] -> UIKit.UIScrollView.UIScrollViewAppearance

パラメーター

containers
Type[]

戻り値

適用対象

GetAppearance(UITraitCollection)

指定した の外観プロキシを返します traits

public static UIKit.UIScrollView.UIScrollViewAppearance GetAppearance (UIKit.UITraitCollection traits);
static member GetAppearance : UIKit.UITraitCollection -> UIKit.UIScrollView.UIScrollViewAppearance

パラメーター

戻り値

適用対象

GetAppearance<T>()

UIScrollView のサブクラスの外観プロキシ UIScrollView.UIScrollViewAppearance を取得します。

public static UIKit.UIScrollView.UIScrollViewAppearance GetAppearance<T> () where T : UIKit.UIScrollView;
static member GetAppearance : unit -> UIKit.UIScrollView.UIScrollViewAppearance (requires 'T :> UIKit.UIScrollView)

型パラメーター

T

UIAppearance プロキシを返す必要がある型。 これは UIScrollView のサブクラスです。

戻り値

指定した型の外観プロキシ オブジェクト。

注釈

返されるオブジェクトに外観プロパティを設定すると、型パラメーターのすべてのクラスとサブクラスの外観に影響します。

AppearanceプロパティやAppearanceWhenContainedIn(Type[])、この特定のクラスのインスタンスでのみ動作するメソッドとは異なり、GetAppearance によって返されるプロキシを使用してサブクラスのスタイルを変更できます。

次の例は、GetAppearance メソッドのしくみを示しています

var myTheme = UIScrollView.GetAppearance<MyUIScrollViewSubclass> ();
myTheme.TintColor = UIColor.Red;

詳細については、UIAppearance クラスのドキュメントをご覧ください。

適用対象

GetAppearance<T>(UITraitCollection)

UIScrollView のサブクラスの外観プロキシ UIScrollView.UIScrollViewAppearance を取得します。

public static UIKit.UIScrollView.UIScrollViewAppearance GetAppearance<T> (UIKit.UITraitCollection traits) where T : UIKit.UIScrollView;
static member GetAppearance : UIKit.UITraitCollection -> UIKit.UIScrollView.UIScrollViewAppearance (requires 'T :> UIKit.UIScrollView)

型パラメーター

T

UIAppearance プロキシを返す必要がある型。 これは UIScrollView のサブクラスです。

パラメーター

traits
UITraitCollection

一致する特徴コレクション。

戻り値

指定した型の外観プロキシ オブジェクト。

注釈

返されるオブジェクトは、開発者が UIScrollView のインスタンスの外観プロパティを設定できる UIAppearance プロキシを表します。

AppearanceプロパティやAppearanceWhenContainedIn(Type[])、この特定のクラスのインスタンスでのみ動作するメソッドとは異なり、GetAppearance によって返されるプロキシを使用してサブクラスのスタイルを変更できます。

次の例は、GetAppearance メソッドのしくみを示しています

var myTheme = UIScrollView.GetAppearance<MyUIScrollViewSubclass> (myTraits, );
myTheme.TintColor = UIColor.Red;

詳細については、UIAppearance クラスのドキュメントをご覧ください。

適用対象

GetAppearance<T>(UITraitCollection, Type[])

ビューが指定された階層でホストされている場合に、指定した特性コレクションを持つ UIScrollView のサブクラスの外観プロキシ UIScrollView.UIScrollViewAppearance を取得します。

public static UIKit.UIScrollView.UIScrollViewAppearance GetAppearance<T> (UIKit.UITraitCollection traits, params Type[] containers) where T : UIKit.UIScrollView;
static member GetAppearance : UIKit.UITraitCollection * Type[] -> UIKit.UIScrollView.UIScrollViewAppearance (requires 'T :> UIKit.UIScrollView)

型パラメーター

T

UIAppearance プロキシを返す必要がある型。 これは UIScrollView のサブクラスです。

パラメーター

traits
UITraitCollection

一致する特徴コレクション。

containers
Type[]

この特定の外観を適用するコンテナーとして開発者が必要とする型の一覧。

戻り値

指定した型の外観プロキシ オブジェクト。

注釈

返されるオブジェクトは UIAppearance プロキシを表します。このプロキシでは、開発者は、 パラメーターで指定された階層にビューが含まれている場合に、指定した階層でビューがホストされている場合に、指定された特性コレクションを持つ UIScrollView のインスタンスの外観プロパティを containers 設定できます。

AppearanceプロパティやAppearanceWhenContainedIn(Type[])、この特定のクラスのインスタンスでのみ動作するメソッドとは異なり、GetAppearance によって返されるプロキシを使用してサブクラスのスタイルを変更できます。

次の例は、GetAppearance メソッドのしくみを示しています

var myTheme = UIScrollView.GetAppearance<MyUIScrollViewSubclass> (myTraits, typeof (UINavigationBar), typeof (UIPopoverController));
myTheme.TintColor = UIColor.Red;

詳細については、UIAppearance クラスのドキュメントをご覧ください。

適用対象