Skip to main content

TcxStyleRepository.CreateStyleSheetEx(TcxCustomStyleSheetClass,TComponent) Method

Creates a style sheet and adds it to the style repository.

Declaration

function CreateStyleSheetEx(AStyleSheetClass: TcxCustomStyleSheetClass; AOwner: TComponent): TcxCustomStyleSheet; virtual;

Parameters

Name Type
AStyleSheetClass TcxCustomStyleSheetClass
AOwner TComponent

Returns

Type
TcxCustomStyleSheet

Remarks

The CreateStyleSheetEx method creates a style sheet of class specified by the AStyleSheetClass parameter and adds it to the style repository. The AOwner parameter specifies the owner component for the added style sheet. If the operation is successful, the method returns the newly added style sheet. You should not use this method directly. It is for internal use. Use the CreateStyleSheet method instead.

See Also