Skip to content

Commit 4604052

Browse files
authored
Automatically port System.Windows.Forms documentation (#4706)
Co-authored-by: carlossanlop <[email protected]>
1 parent 1de0df0 commit 4604052

19 files changed

+851
-262
lines changed

xml/System.Windows.Forms/FileDialog.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,12 @@
287287
<ReturnType>System.Nullable&lt;System.Guid&gt;</ReturnType>
288288
</ReturnValue>
289289
<Docs>
290-
<summary>To be added.</summary>
290+
<summary>
291+
<para> Gets or sets the GUID to associate with this dialog state. Typically, state such as the last visited folder and the position and size of the dialog is persisted based on the name of the executable file. By specifying a GUID, an application can have different persisted states for different versions of the dialog within the same application (for example, an import dialog and an open dialog).
292+
</para>
293+
<para> This functionality is not available if an application is not using visual styles or if <see cref="P:System.Windows.Forms.FileDialog.AutoUpgradeEnabled" /> is set to <see langword="false" />.
294+
</para>
295+
</summary>
291296
<value>To be added.</value>
292297
<remarks>To be added.</remarks>
293298
</Docs>

xml/System.Windows.Forms/ListView.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2459,7 +2459,7 @@
24592459
<ReturnType>System.EventHandler&lt;System.Windows.Forms.ListViewGroupEventArgs&gt;</ReturnType>
24602460
</ReturnValue>
24612461
<Docs>
2462-
<summary>To be added.</summary>
2462+
<summary>Occurs when the <see cref="P:System.Windows.Forms.ListViewGroup.CollapsedState" /> changes on a <see cref="T:System.Windows.Forms.ListViewGroup" />.</summary>
24632463
<remarks>To be added.</remarks>
24642464
</Docs>
24652465
</Member>
@@ -2563,7 +2563,7 @@
25632563
<ReturnType>System.EventHandler&lt;System.Windows.Forms.ListViewGroupEventArgs&gt;</ReturnType>
25642564
</ReturnValue>
25652565
<Docs>
2566-
<summary>To be added.</summary>
2566+
<summary>Occurs when the user clicks a <see cref="P:System.Windows.Forms.ListViewGroup.TaskLink" /> on a <see cref="T:System.Windows.Forms.ListViewGroup" />.</summary>
25672567
<remarks>To be added.</remarks>
25682568
</Docs>
25692569
</Member>
@@ -4110,7 +4110,7 @@
41104110
</Parameters>
41114111
<Docs>
41124112
<param name="e">To be added.</param>
4113-
<summary>To be added.</summary>
4113+
<summary>Fires the <see cref="E:System.Windows.Forms.ListView.GroupCollapsedStateChanged" /> event.</summary>
41144114
<remarks>To be added.</remarks>
41154115
</Docs>
41164116
</Member>
@@ -4134,7 +4134,7 @@
41344134
</Parameters>
41354135
<Docs>
41364136
<param name="e">To be added.</param>
4137-
<summary>To be added.</summary>
4137+
<summary>Fires the <see cref="E:System.Windows.Forms.ListView.GroupTaskLinkClick" /> event.</summary>
41384138
<remarks>To be added.</remarks>
41394139
</Docs>
41404140
</Member>

xml/System.Windows.Forms/ListViewGroup.xml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,11 @@
230230
<ReturnType>System.Windows.Forms.ListViewGroupCollapsedState</ReturnType>
231231
</ReturnValue>
232232
<Docs>
233-
<summary>To be added.</summary>
234-
<value>To be added.</value>
233+
<summary>Controls which <see cref="T:System.Windows.Forms.ListViewGroupCollapsedState" /> the group will appear as.</summary>
234+
<value>One of the <see cref="T:System.Windows.Forms.ListViewGroupCollapsedState" /> values that specifies how the group is displayed.
235+
The default is <see cref="F:System.Windows.Forms.ListViewGroupCollapsedState.Default" />.</value>
235236
<remarks>To be added.</remarks>
237+
<exception cref="T:System.ComponentModel.InvalidEnumArgumentException">The specified value when setting this property is not a valid <see cref="T:System.Windows.Forms.ListViewGroupCollapsedState" /> value.</exception>
236238
</Docs>
237239
</Member>
238240
<Member MemberName="Footer">
@@ -251,7 +253,7 @@
251253
<ReturnType>System.String</ReturnType>
252254
</ReturnValue>
253255
<Docs>
254-
<summary>To be added.</summary>
256+
<summary>The text displayed in the group footer.</summary>
255257
<value>To be added.</value>
256258
<remarks>To be added.</remarks>
257259
</Docs>
@@ -278,9 +280,10 @@
278280
<ReturnType>System.Windows.Forms.HorizontalAlignment</ReturnType>
279281
</ReturnValue>
280282
<Docs>
281-
<summary>To be added.</summary>
282-
<value>To be added.</value>
283+
<summary>The alignment of the group footer.</summary>
284+
<value>One of the <see cref="T:System.Windows.Forms.HorizontalAlignment" /> values that specifies the alignment of the footer text. The default is <see cref="F:System.Windows.Forms.HorizontalAlignment.Left" />.</value>
283285
<remarks>To be added.</remarks>
286+
<exception cref="T:System.ComponentModel.InvalidEnumArgumentException">The specified value when setting this property is not a valid <see cref="T:System.Windows.Forms.HorizontalAlignment" /> value.</exception>
284287
</Docs>
285288
</Member>
286289
<Member MemberName="Header">
@@ -493,7 +496,7 @@
493496
<ReturnType>System.String</ReturnType>
494497
</ReturnValue>
495498
<Docs>
496-
<summary>To be added.</summary>
499+
<summary>The text displayed in the group subtitle.</summary>
497500
<value>To be added.</value>
498501
<remarks>To be added.</remarks>
499502
</Docs>
@@ -602,7 +605,7 @@
602605
<ReturnType>System.String</ReturnType>
603606
</ReturnValue>
604607
<Docs>
605-
<summary>To be added.</summary>
608+
<summary>The name of the task link displayed in the group header.</summary>
606609
<value>To be added.</value>
607610
<remarks>To be added.</remarks>
608611
</Docs>

xml/System.Windows.Forms/ListViewGroupEventArgs.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</Base>
1515
<Interfaces />
1616
<Docs>
17-
<summary>To be added.</summary>
17+
<summary>Provides data for the <see cref="M:System.Windows.Forms.ListView.OnGroupCollapsedStateChanged(System.Windows.Forms.ListViewGroupEventArgs)" /> and <see cref="M:System.Windows.Forms.ListView.OnGroupTaskLinkClick(System.Windows.Forms.ListViewGroupEventArgs)" /> event.</summary>
1818
<remarks>To be added.</remarks>
1919
</Docs>
2020
<Members>
@@ -34,8 +34,8 @@
3434
<Parameter Name="groupIndex" Type="System.Int32" />
3535
</Parameters>
3636
<Docs>
37-
<param name="groupIndex">To be added.</param>
38-
<summary>To be added.</summary>
37+
<param name="groupIndex">The index of the <see cref="T:System.Windows.Forms.ListViewGroup" /> associated with the event.</param>
38+
<summary>Initializes a new instances of the <see cref="T:System.Windows.Forms.ListViewGroupEventArgs" /> class.</summary>
3939
<remarks>To be added.</remarks>
4040
</Docs>
4141
</Member>
@@ -55,7 +55,7 @@
5555
<ReturnType>System.Int32</ReturnType>
5656
</ReturnValue>
5757
<Docs>
58-
<summary>To be added.</summary>
58+
<summary>Gets the index of the <see cref="T:System.Windows.Forms.ListViewGroup" /> associated with the event.</summary>
5959
<value>To be added.</value>
6060
<remarks>To be added.</remarks>
6161
</Docs>

xml/System.Windows.Forms/TaskDialog.xml

Lines changed: 78 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,21 @@
1818
</Interface>
1919
</Interfaces>
2020
<Docs>
21-
<summary>To be added.</summary>
22-
<remarks>To be added.</remarks>
21+
<summary>A task dialog allows to display information and get simple input from the user. It is similar to a <see cref="T:System.Windows.Forms.MessageBox" /> (in that it is formatted by the operating system) but provides a lot more features.</summary>
22+
<remarks>
23+
<format type="text/markdown">
24+
<![CDATA[
25+
26+
## Remarks
27+
28+
For more information, see [About Task Dialogs](https://docs.microsoft.com/windows/desktop/Controls/task-dialogs-overview).
29+
30+
> [!NOTE]
31+
> In order to use the dialog, you need ensure <xref:System.Windows.Forms.Application.EnableVisualStyles> has been called before showing the dialog, or the application needs to be compiled with a manifest that contains a dependency to Microsoft.Windows.Common-Controls (6.0.0.0).
32+
> Additionally, the current thread should use the single-threaded apartment (STA) model.
33+
34+
]]></format>
35+
</remarks>
2336
</Docs>
2437
<Members>
2538
<Member MemberName="Close">
@@ -39,8 +52,18 @@
3952
</ReturnValue>
4053
<Parameters />
4154
<Docs>
42-
<summary>To be added.</summary>
43-
<remarks>To be added.</remarks>
55+
<summary>Closes the shown task dialog with <see cref="P:System.Windows.Forms.TaskDialogButton.Cancel" /> as resulting button.</summary>
56+
<remarks>
57+
<format type="text/markdown"><![CDATA[
58+
59+
## Remarks
60+
61+
To close the dialog with a different result, call the <xref:System.Windows.Forms.TaskDialogButton.PerformClick> method of the <xref:System.Windows.Forms.TaskDialogButton> that you want to set as a result.
62+
63+
This method can be called while the dialog is waiting for navigation to complete, whereas <xref:System.Windows.Forms.TaskDialogButton.PerformClick> would throw in that case. When calling this method, the <xref:System.Windows.Forms.TaskDialogButton.Click> event won't be raised.
64+
65+
]]></format>
66+
</remarks>
4467
</Docs>
4568
</Member>
4669
<Member MemberName="Handle">
@@ -62,7 +85,7 @@
6285
<ReturnType>System.IntPtr</ReturnType>
6386
</ReturnValue>
6487
<Docs>
65-
<summary>To be added.</summary>
88+
<summary>Gets the window handle of the task dialog window, or <see cref="F:System.IntPtr.Zero" /> if the dialog is currently not being shown.</summary>
6689
<value>To be added.</value>
6790
<remarks>To be added.</remarks>
6891
</Docs>
@@ -86,11 +109,22 @@
86109
<Parameter Name="startupLocation" Type="System.Windows.Forms.TaskDialogStartupLocation" />
87110
</Parameters>
88111
<Docs>
89-
<param name="page">To be added.</param>
90-
<param name="startupLocation">To be added.</param>
91-
<summary>To be added.</summary>
92-
<returns>To be added.</returns>
93-
<remarks>To be added.</remarks>
112+
<param name="page">The page instance that contains the contents which this task dialog will display.</param>
113+
<param name="startupLocation">Gets or sets the position of the task dialog when it is shown.</param>
114+
<summary>Shows the task dialog.</summary>
115+
<returns>The <see cref="T:System.Windows.Forms.TaskDialogButton" /> which was clicked by the user to close the dialog.</returns>
116+
<remarks>
117+
<format type="text/markdown"><![CDATA[
118+
119+
## Remarks
120+
121+
Showing the dialog will bind the `page` and its controls until this method returns or the dialog is navigated to a different page.
122+
123+
]]></format>
124+
</remarks>
125+
<exception cref="T:System.ArgumentNullException">
126+
<paramref name="page" /> is <see langword="null" />.</exception>
127+
<exception cref="T:System.InvalidOperationException">The specified <paramref name="page" /> contains an invalid configuration.</exception>
94128
</Docs>
95129
</Member>
96130
<Member MemberName="ShowDialog">
@@ -113,12 +147,23 @@
113147
<Parameter Name="startupLocation" Type="System.Windows.Forms.TaskDialogStartupLocation" />
114148
</Parameters>
115149
<Docs>
116-
<param name="hwndOwner">To be added.</param>
117-
<param name="page">To be added.</param>
118-
<param name="startupLocation">To be added.</param>
119-
<summary>To be added.</summary>
120-
<returns>To be added.</returns>
121-
<remarks>To be added.</remarks>
150+
<param name="hwndOwner">The handle of the owner window, or <see cref="F:System.IntPtr.Zero" /> to show a modeless dialog.</param>
151+
<param name="page">The page instance that contains the contents which this task dialog will display.</param>
152+
<param name="startupLocation">Gets or sets the position of the task dialog when it is shown.</param>
153+
<summary>Shows the task dialog with the specified owner.</summary>
154+
<returns>The <see cref="T:System.Windows.Forms.TaskDialogButton" /> which was clicked by the user to close the dialog.</returns>
155+
<remarks>
156+
<format type="text/markdown"><![CDATA[
157+
158+
## Remarks
159+
160+
Showing the dialog will bind the `page` and its controls until this method returns or the dialog is navigated to a different page.
161+
162+
]]></format>
163+
</remarks>
164+
<exception cref="T:System.ArgumentNullException">
165+
<paramref name="page" /> is <see langword="null" />.</exception>
166+
<exception cref="T:System.InvalidOperationException">The specified <paramref name="page" /> contains an invalid configuration.</exception>
122167
</Docs>
123168
</Member>
124169
<Member MemberName="ShowDialog">
@@ -141,12 +186,23 @@
141186
<Parameter Name="startupLocation" Type="System.Windows.Forms.TaskDialogStartupLocation" />
142187
</Parameters>
143188
<Docs>
144-
<param name="owner">To be added.</param>
145-
<param name="page">To be added.</param>
146-
<param name="startupLocation">To be added.</param>
147-
<summary>To be added.</summary>
148-
<returns>To be added.</returns>
149-
<remarks>To be added.</remarks>
189+
<param name="owner">The owner window, or <see langword="null" /> to show a modeless dialog.</param>
190+
<param name="page">The page instance that contains the contents which this task dialog will display.</param>
191+
<param name="startupLocation">Gets or sets the position of the task dialog when it is shown.</param>
192+
<summary>Shows the task dialog with the specified owner.</summary>
193+
<returns>The <see cref="T:System.Windows.Forms.TaskDialogButton" /> which was clicked by the user to close the dialog.</returns>
194+
<remarks>
195+
<format type="text/markdown"><![CDATA[
196+
197+
## Remarks
198+
199+
Showing the dialog will bind the `page` and its controls until this method returns or the dialog is navigated to a different page.
200+
201+
]]></format>
202+
</remarks>
203+
<exception cref="T:System.ArgumentNullException">
204+
<paramref name="owner" /> is <see langword="null" /> - or - <paramref name="page" /> is <see langword="null" />.</exception>
205+
<exception cref="T:System.InvalidOperationException">The specified <paramref name="page" /> contains an invalid configuration.</exception>
150206
</Docs>
151207
</Member>
152208
</Members>

0 commit comments

Comments
 (0)