121 references to DataFormats
System.Windows.Forms (120)
winforms\Managed\System\WinForms\Clipboard.cs (17)
76
format !=
DataFormats
.GetFormat("System.String").Id &&
77
format !=
DataFormats
.GetFormat("Csv").Id) {
284
return dataObject.GetDataPresent(
DataFormats
.WaveAudio, false);
310
return dataObject.GetDataPresent(
DataFormats
.FileDrop, true);
323
return dataObject.GetDataPresent(
DataFormats
.Bitmap, true);
369
return dataObject.GetData(
DataFormats
.WaveAudio, false) as Stream;
397
string[] strings = dataObject.GetData(
DataFormats
.FileDrop, true) as string[];
413
return dataObject.GetData(
DataFormats
.Bitmap, true) as Image;
477
dataObject.SetData(
DataFormats
.WaveAudio, false, audioStream);
524
dataObject.SetData(
DataFormats
.FileDrop, true, strings);
538
dataObject.SetData(
DataFormats
.Bitmap, true, image);
581
return
DataFormats
.Text;
584
return
DataFormats
.UnicodeText;
587
return
DataFormats
.Rtf;
590
return
DataFormats
.Html;
593
return
DataFormats
.CommaSeparatedValue;
596
return
DataFormats
.UnicodeText;
winforms\Managed\System\WinForms\DataFormats.cs (3)
200
/// <para>Gets a <see cref='System.Windows.Forms.
DataFormats
.Format'/> with the Windows Clipboard numeric ID and name for the specified format.</para>
235
/// <para>Gets a <see cref='System.Windows.Forms.
DataFormats
.Format'/> with the Windows Clipboard numeric
387
/// <para>Initializes a new instance of the <see cref='System.Windows.Forms.
DataFormats
.Format'/> class and specifies whether a
winforms\Managed\System\WinForms\DataGridViewCell.cs (4)
1582
if (String.Equals(format,
DataFormats
.Html, StringComparison.OrdinalIgnoreCase))
1614
bool csv = String.Equals(format,
DataFormats
.CommaSeparatedValue, StringComparison.OrdinalIgnoreCase);
1616
String.Equals(format,
DataFormats
.Text, StringComparison.OrdinalIgnoreCase) ||
1617
String.Equals(format,
DataFormats
.UnicodeText, StringComparison.OrdinalIgnoreCase))
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (4)
162
if (String.Equals(format,
DataFormats
.Html, StringComparison.OrdinalIgnoreCase))
191
bool csv = String.Equals(format,
DataFormats
.CommaSeparatedValue, StringComparison.OrdinalIgnoreCase);
193
String.Equals(format,
DataFormats
.Text, StringComparison.OrdinalIgnoreCase) ||
194
String.Equals(format,
DataFormats
.UnicodeText, StringComparison.OrdinalIgnoreCase))
winforms\Managed\System\WinForms\DataGridViewMethods.cs (7)
7225
string[] formats = new string[] {
DataFormats
.Html,
DataFormats
.Text,
DataFormats
.UnicodeText,
DataFormats
.CommaSeparatedValue };
7483
if (String.Equals(format,
DataFormats
.Html, StringComparison.OrdinalIgnoreCase))
7755
if (String.Equals(format,
DataFormats
.Html, StringComparison.OrdinalIgnoreCase))
8198
if (String.Equals(format,
DataFormats
.Html, StringComparison.OrdinalIgnoreCase))
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (4)
235
if (String.Equals(format,
DataFormats
.Html, StringComparison.OrdinalIgnoreCase))
266
bool csv = String.Equals(format,
DataFormats
.CommaSeparatedValue, StringComparison.OrdinalIgnoreCase);
268
String.Equals(format,
DataFormats
.Text, StringComparison.OrdinalIgnoreCase) ||
269
String.Equals(format,
DataFormats
.UnicodeText, StringComparison.OrdinalIgnoreCase))
winforms\Managed\System\WinForms\DataObject.cs (78)
289
return GetDataPresent(
DataFormats
.WaveAudio, false);
297
return GetDataPresent(
DataFormats
.FileDrop, true);
305
return GetDataPresent(
DataFormats
.Bitmap, true);
334
return GetData(
DataFormats
.WaveAudio, false) as Stream;
343
string[] strings = GetData(
DataFormats
.FileDrop, true) as string[];
355
return GetData(
DataFormats
.Bitmap, true) as Image;
403
SetData(
DataFormats
.WaveAudio, false, audioStream);
416
SetData(
DataFormats
.FileDrop, true, strings);
427
SetData(
DataFormats
.Bitmap, true, image);
459
return
DataFormats
.UnicodeText;
462
return
DataFormats
.Rtf;
465
return
DataFormats
.Html;
468
return
DataFormats
.CommaSeparatedValue;
471
return
DataFormats
.UnicodeText;
503
if (format.Equals(
DataFormats
.Text)
504
|| format.Equals(
DataFormats
.UnicodeText)
505
|| format.Equals(
DataFormats
.StringFormat)) {
508
DataFormats
.StringFormat,
509
DataFormats
.UnicodeText,
510
DataFormats
.Text,
514
if (format.Equals(
DataFormats
.FileDrop)
519
DataFormats
.FileDrop,
525
if (format.Equals(
DataFormats
.Bitmap)
530
DataFormats
.Bitmap,
598
string format =
DataFormats
.GetFormat(formatetc.cfFormat).Name;
610
if (format.Equals(
DataFormats
.Bitmap) && data is Bitmap) {
828
if (!GetDataPresent(
DataFormats
.GetFormat(formatetc.cfFormat).Name)) {
873
else if (format.Equals(
DataFormats
.Text)
874
|| format.Equals(
DataFormats
.Rtf)
875
|| format.Equals(
DataFormats
.OemText)) {
878
else if (format.Equals(
DataFormats
.Html)) {
890
else if (format.Equals(
DataFormats
.UnicodeText)) {
893
else if (format.Equals(
DataFormats
.FileDrop)) {
904
else if (format.Equals(
DataFormats
.Dib)
912
else if (format.Equals(
DataFormats
.Serializable)
1257
string bitmap =
DataFormats
.Bitmap;
1258
string emf =
DataFormats
.EnhancedMetafile;
1259
string text =
DataFormats
.Text;
1260
string unicode =
DataFormats
.UnicodeText;
1261
string standard =
DataFormats
.StringFormat;
1262
string str =
DataFormats
.StringFormat;
1276
temp.cfFormat = unchecked((short)(ushort)(
DataFormats
.GetFormat(format).Id));
1291
|| format.Equals(
DataFormats
.Rtf)
1292
|| format.Equals(
DataFormats
.CommaSeparatedValue)
1293
|| format.Equals(
DataFormats
.FileDrop)
1392
formatetc.cfFormat = unchecked((short)(ushort)(
DataFormats
.GetFormat(format).Id));
1453
if (format.Equals(
DataFormats
.Text)
1454
|| format.Equals(
DataFormats
.Rtf)
1455
|| format.Equals(
DataFormats
.OemText)) {
1458
else if (format.Equals(
DataFormats
.Html)) {
1471
else if (format.Equals(
DataFormats
.UnicodeText)) {
1474
else if (format.Equals(
DataFormats
.FileDrop)) {
1493
(format.Equals(
DataFormats
.StringFormat) ||
1495
format.Equals(
DataFormats
.CommaSeparatedValue) ||
1496
format.Equals(
DataFormats
.Dib) ||
1497
format.Equals(
DataFormats
.Dif) ||
1498
format.Equals(
DataFormats
.Locale) ||
1499
format.Equals(
DataFormats
.PenData) ||
1500
format.Equals(
DataFormats
.Riff) ||
1501
format.Equals(
DataFormats
.SymbolicLink) ||
1502
format.Equals(
DataFormats
.Tiff) ||
1503
format.Equals(
DataFormats
.WaveAudio) ||
1504
format.Equals(
DataFormats
.Bitmap) ||
1505
format.Equals(
DataFormats
.EnhancedMetafile) ||
1506
format.Equals(
DataFormats
.Palette) ||
1507
format.Equals(
DataFormats
.MetafilePict));
1539
formatetc.cfFormat = unchecked((short)(ushort)(
DataFormats
.GetFormat(format).Id));
1586
if (format.Equals(
DataFormats
.Bitmap)) {
1589
else if (format.Equals(
DataFormats
.EnhancedMetafile)) {
1597
formatetc.cfFormat = unchecked((short)(ushort)(
DataFormats
.GetFormat(format).Id));
1620
if (format.Equals(
DataFormats
.Bitmap)
1963
SetData(
DataFormats
.Serializable, data);
1987
formatetc.cfFormat = unchecked((short)(ushort)(
DataFormats
.GetFormat(format).Id));
2063
string name =
DataFormats
.GetFormat(formatetc[0].cfFormat).Name;
2169
if (data is Bitmap && format.Equals(
DataFormats
.Dib)) {
2171
format =
DataFormats
.Bitmap;
2193
&& !this.data.ContainsKey(
DataFormats
.Serializable)) {
2195
SetData(
DataFormats
.Serializable, data);
winforms\Managed\System\WinForms\RichTextBox.cs (3)
1798
public bool CanPaste(
DataFormats
.Format clipFormat) {
2701
public void Paste(
DataFormats
.Format clipFormat) {
2712
private void PasteUnsafe(
DataFormats
.Format clipFormat, int hIcon) {
WsatUI (1)
MMCUI\WSATPropertySheet.cs (1)
145
formatEtc.cfFormat = (short)System.Windows.Forms.
DataFormats
.GetFormat(resourceName).Id;