/
RichTextBoxStreamType.xml
182 lines (176 loc) · 10.5 KB
/
RichTextBoxStreamType.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<Type Name="RichTextBoxStreamType" FullName="System.Windows.Forms.RichTextBoxStreamType">
<TypeSignature Language="C#" Value="public enum RichTextBoxStreamType" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed RichTextBoxStreamType extends System.Enum" />
<TypeSignature Language="DocId" Value="T:System.Windows.Forms.RichTextBoxStreamType" />
<TypeSignature Language="VB.NET" Value="Public Enum RichTextBoxStreamType" />
<TypeSignature Language="F#" Value="type RichTextBoxStreamType = " />
<TypeSignature Language="C++ CLI" Value="public enum class RichTextBoxStreamType" />
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Enum</BaseTypeName>
</Base>
<Docs>
<summary>Specifies the types of input and output streams used to load and save data in the <see cref="T:System.Windows.Forms.RichTextBox" /> control.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the members of this enumeration when calling the <xref:System.Windows.Forms.RichTextBox.LoadFile%2A> and <xref:System.Windows.Forms.RichTextBox.SaveFile%2A> methods of the <xref:System.Windows.Forms.RichTextBox> control.
## Examples
The following example saves the contents of the <xref:System.Windows.Forms.RichTextBox> into an ASCII text file. The example uses the <xref:System.Windows.Forms.SaveFileDialog> class to display a dialog to request the path and file name from the user. The code then saves the contents of the control to that file. The example uses this version of the <xref:System.Windows.Forms.RichTextBox.SaveFile%2A> method to specify that the file be saved as an ASCII text file instead of the standard Rich Text Format. This example assumes that the code is placed in a <xref:System.Windows.Forms.Form> class that has a <xref:System.Windows.Forms.RichTextBox> control named `richTextBox1`.
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic RichTextBox.SaveFile1 Example/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/RichTextBox/SaveFile/source1.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic RichTextBox.SaveFile1 Example/VB/source.vb" id="Snippet1":::
]]></format>
</remarks>
<altmember cref="T:System.Windows.Forms.RichTextBox" />
<altmember cref="M:System.Windows.Forms.RichTextBox.LoadFile(System.String)" />
<altmember cref="M:System.Windows.Forms.RichTextBox.SaveFile(System.String)" />
</Docs>
<Members>
<Member MemberName="PlainText">
<MemberSignature Language="C#" Value="PlainText" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Windows.Forms.RichTextBoxStreamType PlainText = int32(1)" />
<MemberSignature Language="DocId" Value="F:System.Windows.Forms.RichTextBoxStreamType.PlainText" />
<MemberSignature Language="VB.NET" Value="PlainText" />
<MemberSignature Language="F#" Value="PlainText = 1" Usage="System.Windows.Forms.RichTextBoxStreamType.PlainText" />
<MemberSignature Language="C++ CLI" Value="PlainText" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.RichTextBoxStreamType</ReturnType>
</ReturnValue>
<MemberValue>1</MemberValue>
<Docs>
<summary>A plain text stream that includes spaces in places of Object Linking and Embedding (OLE) objects.</summary>
</Docs>
</Member>
<Member MemberName="RichNoOleObjs">
<MemberSignature Language="C#" Value="RichNoOleObjs" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Windows.Forms.RichTextBoxStreamType RichNoOleObjs = int32(2)" />
<MemberSignature Language="DocId" Value="F:System.Windows.Forms.RichTextBoxStreamType.RichNoOleObjs" />
<MemberSignature Language="VB.NET" Value="RichNoOleObjs" />
<MemberSignature Language="F#" Value="RichNoOleObjs = 2" Usage="System.Windows.Forms.RichTextBoxStreamType.RichNoOleObjs" />
<MemberSignature Language="C++ CLI" Value="RichNoOleObjs" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.RichTextBoxStreamType</ReturnType>
</ReturnValue>
<MemberValue>2</MemberValue>
<Docs>
<summary>A Rich Text Format (RTF) stream with spaces in place of OLE objects. This value is only valid for use with the <see cref="M:System.Windows.Forms.RichTextBox.SaveFile(System.String)" /> method of the <see cref="T:System.Windows.Forms.RichTextBox" /> control.</summary>
</Docs>
</Member>
<Member MemberName="RichText">
<MemberSignature Language="C#" Value="RichText" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Windows.Forms.RichTextBoxStreamType RichText = int32(0)" />
<MemberSignature Language="DocId" Value="F:System.Windows.Forms.RichTextBoxStreamType.RichText" />
<MemberSignature Language="VB.NET" Value="RichText" />
<MemberSignature Language="F#" Value="RichText = 0" Usage="System.Windows.Forms.RichTextBoxStreamType.RichText" />
<MemberSignature Language="C++ CLI" Value="RichText" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.RichTextBoxStreamType</ReturnType>
</ReturnValue>
<MemberValue>0</MemberValue>
<Docs>
<summary>A Rich Text Format (RTF) stream.</summary>
</Docs>
</Member>
<Member MemberName="TextTextOleObjs">
<MemberSignature Language="C#" Value="TextTextOleObjs" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Windows.Forms.RichTextBoxStreamType TextTextOleObjs = int32(3)" />
<MemberSignature Language="DocId" Value="F:System.Windows.Forms.RichTextBoxStreamType.TextTextOleObjs" />
<MemberSignature Language="VB.NET" Value="TextTextOleObjs" />
<MemberSignature Language="F#" Value="TextTextOleObjs = 3" Usage="System.Windows.Forms.RichTextBoxStreamType.TextTextOleObjs" />
<MemberSignature Language="C++ CLI" Value="TextTextOleObjs" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.RichTextBoxStreamType</ReturnType>
</ReturnValue>
<MemberValue>3</MemberValue>
<Docs>
<summary>A plain text stream with a textual representation of OLE objects. This value is only valid for use with the <see cref="M:System.Windows.Forms.RichTextBox.SaveFile(System.String)" /> method of the <see cref="T:System.Windows.Forms.RichTextBox" /> control.</summary>
</Docs>
</Member>
<Member MemberName="UnicodePlainText">
<MemberSignature Language="C#" Value="UnicodePlainText" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Windows.Forms.RichTextBoxStreamType UnicodePlainText = int32(4)" />
<MemberSignature Language="DocId" Value="F:System.Windows.Forms.RichTextBoxStreamType.UnicodePlainText" />
<MemberSignature Language="VB.NET" Value="UnicodePlainText" />
<MemberSignature Language="F#" Value="UnicodePlainText = 4" Usage="System.Windows.Forms.RichTextBoxStreamType.UnicodePlainText" />
<MemberSignature Language="C++ CLI" Value="UnicodePlainText" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.RichTextBoxStreamType</ReturnType>
</ReturnValue>
<MemberValue>4</MemberValue>
<Docs>
<summary>A text stream that contains spaces in place of Object Linking and Embedding (OLE) objects. The text is encoded in Unicode.</summary>
</Docs>
</Member>
</Members>
</Type>