19 references to LoadFile
System.Windows.Forms (1)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
2308
LoadFile
(file, fileType);
System.Windows.Forms.Tests (17)
System\Windows\Forms\RichTextBoxTests.cs (17)
8555
control.
LoadFile
(stream, RichTextBoxStreamType.PlainText);
8569
control.
LoadFile
(stream, RichTextBoxStreamType.PlainText);
8587
control.
LoadFile
(stream, RichTextBoxStreamType.PlainText);
8611
control.
LoadFile
(stream, RichTextBoxStreamType.PlainText);
8631
control.
LoadFile
(stream, RichTextBoxStreamType.PlainText);
8642
control.
LoadFile
(stream, RichTextBoxStreamType.UnicodePlainText);
8656
control.
LoadFile
(stream, RichTextBoxStreamType.UnicodePlainText);
8674
control.
LoadFile
(stream, RichTextBoxStreamType.UnicodePlainText);
8698
control.
LoadFile
(stream, RichTextBoxStreamType.UnicodePlainText);
8718
control.
LoadFile
(stream, RichTextBoxStreamType.UnicodePlainText);
8733
control.
LoadFile
(stream, RichTextBoxStreamType.RichText);
8750
control.
LoadFile
(stream, RichTextBoxStreamType.RichText);
8760
Assert.Throws<ArgumentNullException>("data", () => control.
LoadFile
((Stream)null, RichTextBoxStreamType.RichText));
8769
Assert.Throws<InvalidEnumArgumentException>("fileType", () => control.
LoadFile
(stream, fileType));
8780
Assert.Throws<ArgumentException>(() => control.
LoadFile
(stream, fileType));
8789
Assert.Throws<ArgumentException>(() => control.
LoadFile
(stream, RichTextBoxStreamType.RichText));
8803
Assert.Throws<ArgumentException>(() => control.
LoadFile
(stream, RichTextBoxStreamType.RichText));
WinFormsControlsTest (1)
RichTextBoxes.cs (1)
17
richTextBox1.
LoadFile
(File.OpenRead(@"Data\example.rtf"), RichTextBoxStreamType.RichText);