ThemeableAttribute.IsObjectThemeable(Object) 方法

定义

返回一个值,该值指示传递给该方法的对象是否支持主题。Returns a value indicating whether the object passed to the method supports themes.

public:
 static bool IsObjectThemeable(System::Object ^ instance);
public static bool IsObjectThemeable (object instance);
static member IsObjectThemeable : obj -> bool
Public Shared Function IsObjectThemeable (instance As Object) As Boolean

参数

instance
Object

要对其进行主题支持测试的对象。The object to test for themes support.

返回

Boolean

如果对象支持主题和控件外观,则为 true;否则为 falsetrue if the object supports themes and control skins; otherwise, false.

例外

instance 参数为 nullThe instance parameter is null.

适用于

另请参阅