RAD Studio VCL Reference
|
Specifies the number of formats in the Formats array property.
property FormatCount: Integer;
__property int FormatCount;
Use FormatCount to find the number of different format types used to encode the information currently stored in the clipboard. FormatCount is read-only.
To find out if a particular format is available on the clipboard, use the HasFormat method.
Delphi Examples:
{ FormatCount, Formats example The following code adds each format on the Clipboard to ListBox1 when Button1 is clicked. Note: You will need to add Clipbrd to the uses clause (Delphi) or include <Clipbrd.hpp> (C++). } uses clipbrd; procedure TForm1.Button1Click(Sender: TObject); var I: Integer; begin for I := 0 to Clipboard.FormatCount - 1 do ListBox1.Items.Add(IntToStr(Clipboard.Formats[I])); end;
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|