26 references to RichTextBoxStreamType
System.Windows.Forms (26)
winforms\Managed\System\WinForms\RichTextBox.cs (26)
2402LoadFile(path, RichTextBoxStreamType.RichText); 2411public void LoadFile(string path, RichTextBoxStreamType fileType) { 2413if (!ClientUtils.IsEnumValid(fileType, (int)fileType, (int)RichTextBoxStreamType.RichText, (int)RichTextBoxStreamType.UnicodePlainText)){ 2414throw new InvalidEnumArgumentException("fileType", (int)fileType, typeof(RichTextBoxStreamType)); 2430public void LoadFile(Stream data, RichTextBoxStreamType fileType) { 2432if (!ClientUtils.IsEnumValid(fileType, (int)fileType, (int)RichTextBoxStreamType.RichText, (int)RichTextBoxStreamType.UnicodePlainText)) 2434throw new InvalidEnumArgumentException("fileType", (int)fileType, typeof(RichTextBoxStreamType)); 2439case RichTextBoxStreamType.RichText: 2442case RichTextBoxStreamType.PlainText: 2446case RichTextBoxStreamType.UnicodePlainText: 2753SaveFile(path, RichTextBoxStreamType.RichText); 2762public void SaveFile(string path, RichTextBoxStreamType fileType) { 2764if (!ClientUtils.IsEnumValid(fileType, (int)fileType, (int)RichTextBoxStreamType.RichText, (int)RichTextBoxStreamType.UnicodePlainText)) 2766throw new InvalidEnumArgumentException("fileType", (int)fileType, typeof(RichTextBoxStreamType)); 2782public void SaveFile(Stream data, RichTextBoxStreamType fileType) { 2785case RichTextBoxStreamType.RichText: 2788case RichTextBoxStreamType.PlainText: 2791case RichTextBoxStreamType.UnicodePlainText: 2794case RichTextBoxStreamType.RichNoOleObjs: 2797case RichTextBoxStreamType.TextTextOleObjs: 2801throw new InvalidEnumArgumentException("fileType", (int)fileType, typeof(RichTextBoxStreamType)); 3451LoadFile(path.ToString(), RichTextBoxStreamType.RichText); 3458LoadFile(path.ToString(), RichTextBoxStreamType.PlainText);