Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxStyleRepository.CreateItem(TcxCustomStyleClass) Method

Creates a new style in a repository.

#Declaration

Delphi
function CreateItem(AStyleClass: TcxCustomStyleClass): TcxCustomStyle; virtual;

#Parameters

Name Type
AStyleClass TcxCustomStyleClass

#Returns

Type
TcxCustomStyle

#Remarks

Use the CreateItem method to create a new style in a repository. The class of the style to create is determined by the AStyleClass parameter. The current repository object becomes the owner of the new style and is used to initialize the TcxCustomStyle.StyleRepository property. The method returns the style object created.

See Also