Vcl.Skia.TSkLabel.TWordsCollection.Add
Delphi
function Add: TCustomWordsItem; overload;
function Add(const ACaption: string; const AColor: TAlphaColor = DefaultColor;
const AFontSize: Single = DefaultFontSize;
const AFontWeight: TSkFontComponent.TSkFontWeight = DefaultFontWeight;
const AFontSlant: TSkFontComponent.TSkFontSlant = DefaultFontSlant): TCustomWordsItem; overload;
C++
HIDESBASE TSkLabel::TCustomWordsItem* __fastcall Add()/* overload */;
HIDESBASE TSkLabel::TCustomWordsItem* __fastcall Add(const System::UnicodeString ACaption, const System::Uitypes::TAlphaColor AColor = (System::Uitypes::TAlphaColor)(0xff000000), const float AFontSize = 1.400000E+01f, const TSkFontComponent::TSkFontWeight AFontWeight = (TSkFontComponent::TSkFontWeight)(0x4), const TSkFontComponent::TSkFontSlant AFontSlant = (TSkFontComponent::TSkFontSlant)(0x0))/* overload */;
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 |
|---|---|---|---|---|
| function | public | Vcl.Skia.pas Vcl.Skia.hpp |
Vcl.Skia | TWordsCollection |
説明
新しい TCollectionItem インスタンスを作成し,Items 配列にそのインスタンスを追加します。
Vcl.Skia.TSkLabel.TWordsCollection.Add は System.Classes.TCollection.Add を継承しています。以下の内容はすべて System.Classes.TCollection.Add を参照しています。
新しい TCollectionItem インスタンスを作成し,Items 配列にそのインスタンスを追加します。
Add メソッドを呼び出すと,コレクション内に項目を作成することができます。新しく作成された項目は Items 配列の最後に配置されます。
Add メソッドは新しいコレクション項目を返します。