TcxStyleRepository.CreateItemEx(TcxCustomStyleClass,TComponent) Method
Creates a new style in the repository with a specified owner.
Declaration
function CreateItemEx(AStyleClass: TcxCustomStyleClass; AOwner: TComponent): TcxCustomStyle; virtual;
Parameters
| Name | Type | Description |
|---|---|---|
| AStyleClass | TcxCustomStyleClass | The class-reference to a style. |
| AOwner | TComponent | The style owner component. |
Returns
| Type | Description |
|---|---|
| TcxCustomStyle | A created style. |
Remarks
The CreateItemEx method allows you to create a style with a specified owner. The AStyleClass parameter identifies the class of the style to create. The StyleRepository property of the style created is initialized with the current TcxStyleRepository object.
See Also