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