Style.RegisterStyle(String, Type, Object, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers a style property and returns a unique key for lookup. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
public:
static System::Object ^ RegisterStyle(System::String ^ name, Type ^ type, System::Object ^ defaultValue, bool inherit);
public static object RegisterStyle(string name, Type type, object defaultValue, bool inherit);
static member RegisterStyle : string * Type * obj * bool -> obj
Public Shared Function RegisterStyle (name As String, type As Type, defaultValue As Object, inherit As Boolean) As Object
Parameters
- name
- String
The name of the style property.
- type
- Type
The type used for the property.
- defaultValue
- Object
The default value of the property.
- inherit
- Boolean
Indicates whether the style inherits from parent objects. The default is true.
Returns
A unique key for lookup.
Remarks
Called only from inherited style classes.