FMX.Switch.Style.TStyledSwitch.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(AOwner: TComponent); override;

Properties

Type Visibility Source Unit Parent
constructor public FMX.Switch.Style.pas FMX.Switch.Style TStyledSwitch

Description

Creates an instance of TStyledPresentation with the specified owner, data model, and presented control.

FMX.Switch.Style.TStyledSwitch.Create inherits from FMX.Presentation.Style.TStyledPresentation.Create. All content below this line refers to FMX.Presentation.Style.TStyledPresentation.Create.

Creates an instance of TStyledPresentation with the specified owner, data model, and presented control.

The class of the specified data model must match DefineModelClass. Otherwise, Create raises an EPresentationWrongModel exception with the following message:

Model is not a valid class. Expected [<DefineModelClass.ClassName>], but received [<AModel.ClassName>]

See Also