33 references to Html
System.Windows.Forms (8)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
7136DataFormats.Html, 7424if (string.Equals(format, DataFormats.Html, StringComparison.OrdinalIgnoreCase)) 7723if (string.Equals(format, DataFormats.Html, StringComparison.OrdinalIgnoreCase)) 8139if (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)
625TextDataFormat.Html => DataFormats.Html,
System.Windows.Forms.Tests (24)
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)
127dataObject.ContainsText(TextDataFormat.Html).Should().Be(format == DataFormats.Html); 187dataObject.ContainsText(TextDataFormat.Html).Should().Be(format == DataFormats.Html);
System\Windows\Forms\DataObjectTests.cs (20)
43DataFormats.Html, 172theoryData.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" }, 1208dataObject.ContainsText(TextDataFormat.Html).Should().Be(format == DataFormats.Html); 1357dataObject.ContainsText(TextDataFormat.Html).Should().Be(format == DataFormats.Html); 1670dataObject.GetData(DataFormats.Html, autoConvert: true).Should().BeNull(); 1671dataObject.GetData(DataFormats.Html, autoConvert: false).Should().BeNull(); 1684dataObject.GetDataPresent(DataFormats.Html, autoConvert: true).Should().BeFalse(); 1685dataObject.GetDataPresent(DataFormats.Html, autoConvert: false).Should().BeFalse(); 1749dataObject.GetData(DataFormats.Html, autoConvert: true).Should().Be(expectedHtmlText); 1750dataObject.GetData(DataFormats.Html, autoConvert: false).Should().Be(expectedHtmlText); 1763dataObject.GetDataPresent(DataFormats.Html, autoConvert: true).Should().Be(expectedHtmlText is not null); 1764dataObject.GetDataPresent(DataFormats.Html, autoConvert: false).Should().Be(expectedHtmlText is not null); 1777theoryData.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)
20DataFormats.Html,