TcxStyleRepository.CreateItemEx(TcxCustomStyleClass,TComponent) Method
In This Article
Creates a new style in the repository with a specified owner.
#Declaration
Delphi
function CreateItemEx(AStyleClass: TcxCustomStyleClass; AOwner: TComponent): TcxCustomStyle; virtual;
#Parameters
Name | Type | Description |
---|---|---|
AStyle |
Tcx |
The class-reference to a style. |
AOwner | TComponent | The style owner component. |
#Returns
Type | Description |
---|---|
Tcx |
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