Exemple #1
0
        public bool IsTypeAvailable(TransferDataType type)
        {
            if (type == TransferDataType.Text)
            {
                return(clipboard.WaitIsTextAvailable());
            }
            if (type == TransferDataType.Image)
            {
                return(clipboard.WaitIsImageAvailable());
            }

            foreach (var at in GetAtomsForType(type))
            {
                if (clipboard.WaitIsTargetAvailable(at))
                {
                    return(true);
                }
            }
            return(false);
        }