Data.Bind.DBLinks.TDBGridLinkColumnDescription
Delphi
TDBGridLinkColumnDescription = record
private
FColumnControl: TComponent;
FColumnName: string;
FColumnIndex: Integer;
FSourceMemberName: string;
FControlMemberName: string;
FFormatCellExpressions: TArray<TDBGridLinkColumnExpressionPair>;
FFormatColumnExpressions: TArray<TDBGridLinkColumnExpressionPair>;
FParseCellExpressions: TArray<TDBGridLinkColumnExpressionPair>;
public
constructor Create(AColumnControl: TComponent; const AColumnName: string;
AColumnIndex: Integer;
const AControlMemberName, ASourceMemberName: string;
AFormatColumnExpressions, AFormatCellExpressions, AParseCellExpression:
TArray<TDBGridLinkColumnExpressionPair>);
property ColumnControl: TComponent read FColumnControl;
property ColumnName: string read FColumnName;
property ColumnIndex: Integer read FColumnIndex;
property SourceMemberName: string read FSourceMemberName;
property ControlMemberName: string read FControlMemberName;
property ParseCellExpression: TArray<TDBGridLinkColumnExpressionPair> read FParseCellExpressions;
property FormatCellExpressions: TArray<TDBGridLinkColumnExpressionPair> read FFormatCellExpressions;
property FormatColumnExpressions: TArray<TDBGridLinkColumnExpressionPair> read FFormatColumnExpressions;
function IsEqual(const ADescription: TDBGridLinkColumnDescription): Boolean;
end;
C++
struct DECLSPEC_DRECORD TDBGridLinkColumnDescription
{
private:
System::Classes::TComponent* FColumnControl;
System::UnicodeString FColumnName;
int FColumnIndex;
System::UnicodeString FSourceMemberName;
System::UnicodeString FControlMemberName;
#ifndef _WIN64
System::DynamicArray<TDBGridLinkColumnExpressionPair> FFormatCellExpressions;
System::DynamicArray<TDBGridLinkColumnExpressionPair> FFormatColumnExpressions;
System::DynamicArray<TDBGridLinkColumnExpressionPair> FParseCellExpressions;
#else /* _WIN64 */
System::TArray__1<TDBGridLinkColumnExpressionPair> FFormatCellExpressions;
System::TArray__1<TDBGridLinkColumnExpressionPair> FFormatColumnExpressions;
System::TArray__1<TDBGridLinkColumnExpressionPair> FParseCellExpressions;
#endif /* _WIN64 */
public:
#ifndef _WIN64
__fastcall TDBGridLinkColumnDescription(System::Classes::TComponent* AColumnControl, const System::UnicodeString AColumnName, int AColumnIndex, const System::UnicodeString AControlMemberName, const System::UnicodeString ASourceMemberName, System::DynamicArray<TDBGridLinkColumnExpressionPair> AFormatColumnExpressions, System::DynamicArray<TDBGridLinkColumnExpressionPair> AFormatCellExpressions, System::DynamicArray<TDBGridLinkColumnExpressionPair> AParseCellExpression);
#else /* _WIN64 */
__fastcall TDBGridLinkColumnDescription(System::Classes::TComponent* AColumnControl, const System::UnicodeString AColumnName, int AColumnIndex, const System::UnicodeString AControlMemberName, const System::UnicodeString ASourceMemberName, System::TArray__1<TDBGridLinkColumnExpressionPair> AFormatColumnExpressions, System::TArray__1<TDBGridLinkColumnExpressionPair> AFormatCellExpressions, System::TArray__1<TDBGridLinkColumnExpressionPair> AParseCellExpression);
#endif /* _WIN64 */
__property System::Classes::TComponent* ColumnControl = {read=FColumnControl};
__property System::UnicodeString ColumnName = {read=FColumnName};
__property int ColumnIndex = {read=FColumnIndex};
__property System::UnicodeString SourceMemberName = {read=FSourceMemberName};
__property System::UnicodeString ControlMemberName = {read=FControlMemberName};
#ifndef _WIN64
__property System::DynamicArray<TDBGridLinkColumnExpressionPair> ParseCellExpression = {read=FParseCellExpressions};
__property System::DynamicArray<TDBGridLinkColumnExpressionPair> FormatCellExpressions = {read=FFormatCellExpressions};
__property System::DynamicArray<TDBGridLinkColumnExpressionPair> FormatColumnExpressions = {read=FFormatColumnExpressions};
#else /* _WIN64 */
__property System::TArray__1<TDBGridLinkColumnExpressionPair> ParseCellExpression = {read=FParseCellExpressions};
__property System::TArray__1<TDBGridLinkColumnExpressionPair> FormatCellExpressions = {read=FFormatCellExpressions};
__property System::TArray__1<TDBGridLinkColumnExpressionPair> FormatColumnExpressions = {read=FFormatColumnExpressions};
#endif /* _WIN64 */
bool __fastcall IsEqual(const TDBGridLinkColumnDescription &ADescription);
TDBGridLinkColumnDescription() {}
};
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
record struct |
public | Data.Bind.DBLinks.pas Data.Bind.DBLinks.hpp |
Data.Bind.DBLinks | Data.Bind.DBLinks |
Description
Est un enregistrement qui contient des informations relatives aux colonnes pour un lien grille de base de données.
Les informations contenues dans l'enregistrement TDBGridLinkColumnDescription comprennent la colonne à contrôler, le nom et l'index de la colonne, le nom du contrôle et de la source de liaison, et plusieurs expressions de liaison pour le formatage.
TDBGridLinkColumnDescription contient aussi la méthode IsEqual qui indique si les informations de colonne stockées dans l'enregistrement correspondent vraiment aux informations de colonne données par le paramètre ADescription
.