ThemeableAttribute.IsTypeThemeable(Type) 方法

定義

傳回數值,指出傳遞至方法的 Type 是否支援主題。

public:
 static bool IsTypeThemeable(Type ^ type);
public static bool IsTypeThemeable (Type type);
static member IsTypeThemeable : Type -> bool
Public Shared Function IsTypeThemeable (type As Type) As Boolean

參數

type
Type

要測試其是否支援主題的 Type

傳回

Boolean

如果 Type 支援主題和控制面板,則為 true,否則為 false

例外狀況

type 參數為 null

備註

類別 ThemeableAttribute 會維護支援主題之類型的靜態內部目錄,而這個方法會檢查目錄,以判斷指定的 Type 是否在該處表示。 如果不是,方法會 AttributeCollection 檢查與 屬性相關聯的 Type ThemeableAttribute 物件,以判斷是否支援主題。

適用於

另請參閱