FMX.Skia.TSkLabel.TWordsCollection.Add

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function Add: TCustomWordsItem; overload;
function Add(const AText: string; const AColor: TAlphaColor = DefaultColor;
const AFontSize: Single = DefaultFontSize;
const AFontWeight: TFontWeight = DefaultFontWeight;
const AFontSlant: TFontSlant = DefaultFontSlant): TCustomWordsItem; overload;

C++

HIDESBASE TSkLabel::TCustomWordsItem* __fastcall Add()/* overload */;
HIDESBASE TSkLabel::TCustomWordsItem* __fastcall Add(const System::UnicodeString AText, const System::Uitypes::TAlphaColor AColor = (System::Uitypes::TAlphaColor)(0xff000000), const float AFontSize = 1.400000E+01f, const Fmx::Graphics::TFontWeight AFontWeight = (Fmx::Graphics::TFontWeight)(0x4), const Fmx::Graphics::TFontSlant AFontSlant = (Fmx::Graphics::TFontSlant)(0x0))/* overload */;

プロパティ

種類 可視性 ソース ユニット
function public
FMX.Skia.pas
FMX.Skia.hpp
FMX.Skia TWordsCollection

説明

新しい TCollectionItem インスタンスを作成し,Items 配列にそのインスタンスを追加します。

FMX.Skia.TSkLabel.TWordsCollection.Add は System.Classes.TCollection.Add を継承しています。以下の内容はすべて System.Classes.TCollection.Add を参照しています。

新しい TCollectionItem インスタンスを作成し,Items 配列にそのインスタンスを追加します。

Add メソッドを呼び出すと,コレクション内に項目を作成することができます。新しく作成された項目は Items 配列の最後に配置されます。

Add メソッドは新しいコレクション項目を返します。

関連項目