来看看Delphi的帮助阿~~很容易看懂的~~TClipboard.HasFormatTClipboard  See also ExampleIndicates whether the clipboard contains data in a specified format.procedure HasFormat(Format: Word): Boolean;DescriptionUse HasFormat to find out whether the clipboard contains data encoded in a specific format. HasFormat returns True if the format is present and False otherwise. TClipboard keeps a list of available formats in the Formats array property.Some of the possible values of the Format parameter follow. HasFormat supports additional formats provided by Windows or by other applications as well as custom formats registered with TPicture.RegisterClipboardFormat.Value MeaningCF_TEXT Text with a CR-LF combination at the end of each line. A null character identifies the end of the text.
CF_BITMAP A Windows bitmap graphic.
CF_METAFILEPICT A Windows metafile graphic.
CF_PICTURE An object of type TPicture.
CF_COMPONENT Any persistent object.在用Delphi的Sample试试~~马上就知道了~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
procedure TForm1.Button1Click(Sender: TObject);begin
if Clipboard.HasFormat(CF_TEXT) then
  Edit1.Text := Clipboard.AsText
else
  MessageDlg('There is no text on the Clipboard', mtInformation,
        [mbOK],0);end;