33 references to Html
System.Windows.Forms (8)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
7136
DataFormats.
Html
,
7424
if (string.Equals(format, DataFormats.
Html
, StringComparison.OrdinalIgnoreCase))
7723
if (string.Equals(format, DataFormats.
Html
, StringComparison.OrdinalIgnoreCase))
8139
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)
625
TextDataFormat.Html => DataFormats.
Html
,
System.Windows.Forms.Tests (24)
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)
127
dataObject.ContainsText(TextDataFormat.Html).Should().Be(format == DataFormats.
Html
);
187
dataObject.ContainsText(TextDataFormat.Html).Should().Be(format == DataFormats.
Html
);
System\Windows\Forms\DataObjectTests.cs (20)
43
DataFormats.
Html
,
172
theoryData.Add(TextDataFormat.Html, DataFormats.
Html
, result);
914
{ TextDataFormat.Html, DataFormats.
Html
, null, string.Empty },
915
{ TextDataFormat.Html, DataFormats.
Html
, new(), string.Empty },
916
{ TextDataFormat.Html, DataFormats.
Html
, string.Empty, string.Empty },
917
{ TextDataFormat.Html, DataFormats.
Html
, " ", " " },
918
{ TextDataFormat.Html, DataFormats.
Html
, "a", "a" },
1208
dataObject.ContainsText(TextDataFormat.Html).Should().Be(format == DataFormats.
Html
);
1357
dataObject.ContainsText(TextDataFormat.Html).Should().Be(format == DataFormats.
Html
);
1670
dataObject.GetData(DataFormats.
Html
, autoConvert: true).Should().BeNull();
1671
dataObject.GetData(DataFormats.
Html
, autoConvert: false).Should().BeNull();
1684
dataObject.GetDataPresent(DataFormats.
Html
, autoConvert: true).Should().BeFalse();
1685
dataObject.GetDataPresent(DataFormats.
Html
, autoConvert: false).Should().BeFalse();
1749
dataObject.GetData(DataFormats.
Html
, autoConvert: true).Should().Be(expectedHtmlText);
1750
dataObject.GetData(DataFormats.
Html
, autoConvert: false).Should().Be(expectedHtmlText);
1763
dataObject.GetDataPresent(DataFormats.
Html
, autoConvert: true).Should().Be(expectedHtmlText is not null);
1764
dataObject.GetDataPresent(DataFormats.
Html
, autoConvert: false).Should().Be(expectedHtmlText is not null);
1777
theoryData.Add(textData, TextDataFormat.Html, DataFormats.
Html
);
2032
{ DataFormats.
Html
, TYMED.TYMED_HGLOBAL },
2372
{ TextDataFormat.Html, (short)DataFormats.GetFormat(DataFormats.
Html
).Id }
System.Windows.Forms.TestUtilities (1)
DataObjectTestHelpers.cs (1)
20
DataFormats.
Html
,