30 references to Html
System.Windows.Forms (8)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
7136
DataFormats.
Html
,
7423
if (string.Equals(format, DataFormats.
Html
, StringComparison.OrdinalIgnoreCase))
7722
if (string.Equals(format, DataFormats.
Html
, StringComparison.OrdinalIgnoreCase))
8138
if (string.Equals(format, DataFormats.
Html
, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
1316
if (string.Equals(format, DataFormats.
Html
, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
138
if (string.Equals(format, DataFormats.
Html
, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
108
if (string.Equals(format, DataFormats.
Html
, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\OLE\Clipboard.cs (1)
348
TextDataFormat.Html => DataFormats.
Html
,
System.Windows.Forms.Tests (22)
System\Windows\Forms\DataFormatsTests.cs (2)
19
yield return new object[] { DataFormats.
Html
, "HTML Format" };
79
yield return new object[] { DataFormats.
Html
, "HTML Format" };
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (2)
126
dataObject.ContainsText(TextDataFormat.Html).Should().Be(format == DataFormats.
Html
);
186
dataObject.ContainsText(TextDataFormat.Html).Should().Be(format == DataFormats.
Html
);
System\Windows\Forms\DataObjectTests.cs (18)
35
DataFormats.
Html
,
164
theoryData.Add(TextDataFormat.Html, DataFormats.
Html
, result);
768
{ TextDataFormat.Html, DataFormats.
Html
, null, string.Empty },
769
{ TextDataFormat.Html, DataFormats.
Html
, new(), string.Empty },
770
{ TextDataFormat.Html, DataFormats.
Html
, string.Empty, string.Empty },
771
{ TextDataFormat.Html, DataFormats.
Html
, " ", " " },
772
{ TextDataFormat.Html, DataFormats.
Html
, "a", "a" },
1388
dataObject.GetData(DataFormats.
Html
, autoConvert: true).Should().BeNull();
1389
dataObject.GetData(DataFormats.
Html
, autoConvert: false).Should().BeNull();
1402
dataObject.GetDataPresent(DataFormats.
Html
, autoConvert: true).Should().BeFalse();
1403
dataObject.GetDataPresent(DataFormats.
Html
, autoConvert: false).Should().BeFalse();
1467
dataObject.GetData(DataFormats.
Html
, autoConvert: true).Should().Be(expectedHtmlText);
1468
dataObject.GetData(DataFormats.
Html
, autoConvert: false).Should().Be(expectedHtmlText);
1481
dataObject.GetDataPresent(DataFormats.
Html
, autoConvert: true).Should().Be(expectedHtmlText is not null);
1482
dataObject.GetDataPresent(DataFormats.
Html
, autoConvert: false).Should().Be(expectedHtmlText is not null);
1495
theoryData.Add(textData, TextDataFormat.Html, DataFormats.
Html
);
1750
{ DataFormats.
Html
, TYMED.TYMED_HGLOBAL },
2090
{ TextDataFormat.Html, (short)DataFormats.GetFormat(DataFormats.
Html
).Id }