winforms\Managed\System\WinForms\DataObject.cs (20)
313return ContainsText(TextDataFormat.UnicodeText);
320public virtual bool ContainsText(TextDataFormat format) {
322if (!ClientUtils.IsEnumValid(format, (int)format, (int)TextDataFormat.Text, (int)TextDataFormat.CommaSeparatedValue)){
323throw new InvalidEnumArgumentException("format", (int)format, typeof(TextDataFormat));
363return GetText(TextDataFormat.UnicodeText);
370public virtual string GetText(TextDataFormat format) {
372if (!ClientUtils.IsEnumValid(format, (int)format, (int)TextDataFormat.Text, (int)TextDataFormat.CommaSeparatedValue)){
373throw new InvalidEnumArgumentException("format", (int)format, typeof(TextDataFormat));
435SetText(textData, TextDataFormat.UnicodeText);
442public virtual void SetText(string textData, TextDataFormat format) {
448if (!ClientUtils.IsEnumValid(format, (int)format, (int)TextDataFormat.Text, (int)TextDataFormat.CommaSeparatedValue))
450throw new InvalidEnumArgumentException("format", (int)format, typeof(TextDataFormat));
456private static string ConvertToDataFormats(TextDataFormat format) {
458case TextDataFormat.UnicodeText:
461case TextDataFormat.Rtf:
464case TextDataFormat.Html:
467case TextDataFormat.CommaSeparatedValue: