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