Game Development Reference
In-Depth Information
return formats;
}
internal static void CopyText(string text)
{
CopyArbitraryData(DataFormats.Text, (object)text);
}
internal static void CopyImage(Image image)
{
CopyArbitraryData(DataFormats.Bitmap, (object)image);
}
internal static void CopyCustomData(CustomData data)
{
CopyArbitraryData(CustomData.DataFormat.Name, (object)data);
}
internal static string PasteText()
{
object rawData = PasteArbitraryData(DataFormats.Text, true);
string text = null;
if (rawData != null && rawData is string)
{
text = (string)rawData;
}
return text;
}
internal static Image PasteImage()
{
object rawData = PasteArbitraryData(DataFormats.Bitmap, true);
Image image = null;
if (rawData != null && rawData is Image)
{
image = (Image)rawData;
}
Search Nedrilad ::




Custom Search