Skip to content

TPackageVariants

Collection of package variants

Declaration

Source position: fpmkunit.pp line 659

type

  TPackageVariants = class(TNamedCollection)
  public
    function Add : TPackageVariant; overload;
    function GetEnumerator : TPackageVariantEnumerator;
    property Name: string; {rw}
    property MasterPackage: TPackage; {r}
    property DefaultPackageVariant: TPackageVariant; {r}
    property ActivePackageVariant: TPackageVariant; {r}
    property DefaultPackageVariantName: string; {rw}
    property ActivePackageVariantName: string; {rw}
    property IsInheritable: Boolean; {r}
    property AutoAddToPackage: Boolean; {r}
  end;

Description

TPackageVariants is a collection class that manages multiple TPackageVariant objects. This class provides methods for adding, accessing, and enumerating package variants within a package configuration.

Properties

Member Visibility Description
ActivePackageVariant read only public Currently active package variant for building
ActivePackageVariantName public Name of the currently active package variant
AutoAddToPackage read only public Whether variants are automatically added to the package
DefaultPackageVariant read only public Default package variant used when none specified
DefaultPackageVariantName public Name of the default package variant
IsInheritable read only public Whether package variants can be inherited by child packages
MasterPackage read only public Reference to the master package owning the variants
Name public Name of the package variants collection
See all Properties

Methods

Member Visibility Description
Add public Adds a new package variant to the collection
GetEnumerator public Gets enumerator for iterating package variants
See all Methods