ABPeoplePickerNavigationController.GetAppearance 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GetAppearance(UITraitCollection, Type[]) | |
GetAppearance(UITraitCollection) | |
GetAppearance<T>() |
取得 ABPeoplePickerNavigationController 子類別的外觀 Proxy ABPeoplePickerNavigationController.ABPeoplePickerNavigationControllerAppearance 。 |
GetAppearance<T>(UITraitCollection) |
取得 ABPeoplePickerNavigationController 子類別的外觀 Proxy ABPeoplePickerNavigationController.ABPeoplePickerNavigationControllerAppearance 。 |
GetAppearance<T>(UITraitCollection, Type[]) |
取得當檢視裝載于指定階層時,具有指定特徵集合之 ABPeoplePickerNavigationController 子類別的外觀 Proxy ABPeoplePickerNavigationController.ABPeoplePickerNavigationControllerAppearance 。 |
GetAppearance(UITraitCollection, Type[])
public static AddressBookUI.ABPeoplePickerNavigationController.ABPeoplePickerNavigationControllerAppearance GetAppearance (UIKit.UITraitCollection traits, params Type[] containers);
static member GetAppearance : UIKit.UITraitCollection * Type[] -> AddressBookUI.ABPeoplePickerNavigationController.ABPeoplePickerNavigationControllerAppearance
參數
- traits
- UITraitCollection
- containers
- Type[]
傳回
適用於
GetAppearance(UITraitCollection)
public static AddressBookUI.ABPeoplePickerNavigationController.ABPeoplePickerNavigationControllerAppearance GetAppearance (UIKit.UITraitCollection traits);
static member GetAppearance : UIKit.UITraitCollection -> AddressBookUI.ABPeoplePickerNavigationController.ABPeoplePickerNavigationControllerAppearance
參數
- traits
- UITraitCollection
傳回
適用於
GetAppearance<T>()
取得 ABPeoplePickerNavigationController 子類別的外觀 Proxy ABPeoplePickerNavigationController.ABPeoplePickerNavigationControllerAppearance 。
public static AddressBookUI.ABPeoplePickerNavigationController.ABPeoplePickerNavigationControllerAppearance GetAppearance<T> () where T : AddressBookUI.ABPeoplePickerNavigationController;
static member GetAppearance : unit -> AddressBookUI.ABPeoplePickerNavigationController.ABPeoplePickerNavigationControllerAppearance (requires 'T :> AddressBookUI.ABPeoplePickerNavigationController)
類型參數
- T
必須傳回 UIAppearance Proxy 的類型。 這是 ABPeoplePickerNavigationController 的子類別。
傳回
指定型別的外觀 Proxy 物件。
備註
在傳回的物件上設定任何外觀屬性會影響類型參數的所有類別和子類別的外觀。
Appearance不同于屬性,或 AppearanceWhenContainedIn(Type[]) 只適用于這個特定類別實例的方法,GetAppearance 所傳回的 Proxy 可用來變更子類別的樣式。
下列範例顯示 GetAppearance 方法的運作方式
var myTheme = ABPeoplePickerNavigationController.GetAppearance<MyABPeoplePickerNavigationControllerSubclass> ();
myTheme.TintColor = UIColor.Red;
如需詳細資訊,請參閱 類別 UIAppearance 的檔。
適用於
GetAppearance<T>(UITraitCollection)
取得 ABPeoplePickerNavigationController 子類別的外觀 Proxy ABPeoplePickerNavigationController.ABPeoplePickerNavigationControllerAppearance 。
public static AddressBookUI.ABPeoplePickerNavigationController.ABPeoplePickerNavigationControllerAppearance GetAppearance<T> (UIKit.UITraitCollection traits) where T : AddressBookUI.ABPeoplePickerNavigationController;
static member GetAppearance : UIKit.UITraitCollection -> AddressBookUI.ABPeoplePickerNavigationController.ABPeoplePickerNavigationControllerAppearance (requires 'T :> AddressBookUI.ABPeoplePickerNavigationController)
類型參數
- T
必須傳回 UIAppearance Proxy 的類型。 這是 ABPeoplePickerNavigationController 的子類別。
參數
- traits
- UITraitCollection
要比對的特徵集合。
傳回
指定型別的外觀 Proxy 物件。
備註
傳回的物件代表 UIAppearance Proxy,開發人員可以在其中設定 ABPeoplePickerNavigationController 實例的外觀屬性。
Appearance不同于屬性,或 AppearanceWhenContainedIn(Type[]) 只適用于這個特定類別實例的方法,GetAppearance 所傳回的 Proxy 可用來變更子類別的樣式。
下列範例顯示 GetAppearance 方法的運作方式
var myTheme = ABPeoplePickerNavigationController.GetAppearance<MyABPeoplePickerNavigationControllerSubclass> (myTraits, );
myTheme.TintColor = UIColor.Red;
如需詳細資訊,請參閱 類別 UIAppearance 的檔。
適用於
GetAppearance<T>(UITraitCollection, Type[])
取得當檢視裝載于指定階層時,具有指定特徵集合之 ABPeoplePickerNavigationController 子類別的外觀 Proxy ABPeoplePickerNavigationController.ABPeoplePickerNavigationControllerAppearance 。
public static AddressBookUI.ABPeoplePickerNavigationController.ABPeoplePickerNavigationControllerAppearance GetAppearance<T> (UIKit.UITraitCollection traits, params Type[] containers) where T : AddressBookUI.ABPeoplePickerNavigationController;
static member GetAppearance : UIKit.UITraitCollection * Type[] -> AddressBookUI.ABPeoplePickerNavigationController.ABPeoplePickerNavigationControllerAppearance (requires 'T :> AddressBookUI.ABPeoplePickerNavigationController)
類型參數
- T
必須傳回 UIAppearance Proxy 的類型。 這是 ABPeoplePickerNavigationController 的子類別。
參數
- traits
- UITraitCollection
要比對的特徵集合。
- containers
- Type[]
開發人員想要作為容器來套用此特定外觀的類型清單。
傳回
指定型別的外觀 Proxy 物件。
備註
傳回的物件代表 UIAppearance Proxy,開發人員可以在參數所指定的階層 containers
中包含這些實例時,為 ABPeoplePickerNavigationController 實例設定具有指定特徵集合的外觀屬性。
Appearance不同于屬性,或 AppearanceWhenContainedIn(Type[]) 只適用于這個特定類別實例的方法,GetAppearance 所傳回的 Proxy 可用來變更子類別的樣式。
下列範例顯示 GetAppearance 方法的運作方式
var myTheme = ABPeoplePickerNavigationController.GetAppearance<MyABPeoplePickerNavigationControllerSubclass> (myTraits, typeof (UINavigationBar), typeof (UIPopoverController));
myTheme.TintColor = UIColor.Red;
如需詳細資訊,請參閱 類別 UIAppearance 的檔。