Thanks to visit codestin.com
Credit goes to github.com

Skip to content

WIP: Update WinForms docs #2974

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Conversation

RussKie
Copy link
Contributor

@RussKie RussKie commented Aug 9, 2019

Summary

Update WinForms API from xml-docs by running DocsPortingTool.

@RussKie RussKie changed the title Update WinForms docs WIP: Update WinForms docs Aug 9, 2019
@mairaw
Copy link
Contributor

mairaw commented Aug 12, 2019

@carlossanlop I'm breaking this PR apart to make it easier for us to review and merge. My new PRs will already have the needed edits in place.

@@ -616,6 +616,12 @@
<MemberValue>15</MemberValue>
<Docs>
<summary>An application is about to exit drag-and-drop mode. Applications that support drag-and-drop operations must send this event; the system does not.</summary>
<remarks>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RussKie are these remarks information that is important to customer to know? If so, we need to move them to a different place because enum fields don't have remarks on docs
https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.accessibleevents?view=netcore-3.0

Just let me know so I can work on the PR if needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree. I converted these remarks into comments.
Please remove.

<remarks>To be added.</remarks>
<remarks>
<format type="text/markdown"><![CDATA[
This method is obsolete and unused.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These APIs are obsolete but they don't have an obsolete attribute?

Also, obsolete only in .NET Core? We'd need to tell since when because the docs are for all versions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good spot! Looks like these comments come all the way from NETFx, e.g.
http://index/?query=bindingcontext&rightProject=System.Windows.Forms&file=System%5CWinForms%5CBindingContext.cs&line=158

@merriemcgaw @Tanya-Solyanik should we decorate these methods as oboslete (with warning)?

<remarks>To be added.</remarks>
<remarks>
<format type="text/markdown"><![CDATA[
We don't do set because of the value class semantics, etc.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like an internal comment. Do we need this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove

@@ -39,7 +39,7 @@
<param name="relatedObject">To be added.</param>
<param name="changeType">To be added.</param>
<param name="actionLists">To be added.</param>
<summary>To be added.</summary>
<summary>Constructor that requires the object in question, the type of change and the remaining actionlists left for the object. on the related object.</summary>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<summary>Constructor that requires the object in question, the type of change and the remaining actionlists left for the object. on the related object.</summary>
<summary>Constructor that requires the object in question, the type of change and the remaining actionlists left for the object on the related object.</summary>

@@ -14,7 +14,7 @@
</Base>
<Interfaces />
<Docs>
<summary>To be added.</summary>
<summary>This EventArgs class is used by the DesignerActionService to signify that there has been a change in DesignerActionLists (added or removed) on the related object.</summary>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit unsure about the syntax, but I think the following is a little more meaningful:

Suggested change
<summary>This EventArgs class is used by the DesignerActionService to signify that there has been a change in DesignerActionLists (added or removed) on the related object.</summary>
<summary>This class is used by the <see cref="DesignerActionService"/> to signify that there has been a change in the <see cref="DesignerActionListCollection">designer action lists collection</see> (added or removed) on the related object.</summary>

I'm updating our xml-docs to read the above.

@@ -80,7 +80,7 @@
<ReturnType>System.Windows.Forms.Design.DesignerActionListsChangedType</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<summary>The type of changed that caused the related event to be thrown.</summary>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<summary>The type of changed that caused the related event to be thrown.</summary>
<summary>The type of change that caused the related event to be thrown.</summary>

The xml-docs updated

@@ -18,7 +18,7 @@
</Attribute>
</Attributes>
<Docs>
<summary>To be added.</summary>
<summary>An enum that defines what time of action happend to the related object's DesignerActionLists collection.</summary>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<summary>An enum that defines what time of action happend to the related object's DesignerActionLists collection.</summary>
<summary>An enum that defines what type of action happend to the related object's <see cref="DesignerActionListCollection">designer action lists collection</see>.</summary>

The xml-doc is updated

@@ -38,7 +38,7 @@
<ReturnType>System.ComponentModel.Design.DesignerActionUIStateChangeEventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<summary>This event is thrown whenever a request is made to show/hide the ui</summary>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<summary>This event is thrown whenever a request is made to show/hide the ui</summary>
<summary>This event is thrown whenever a request is made to show/hide the UI.</summary>

The xml-doc is updated

@@ -124,7 +124,7 @@
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<summary>Gets or Sets whether the dialog will be automatically upgraded to enable new features.</summary>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<summary>Gets or Sets whether the dialog will be automatically upgraded to enable new features.</summary>
<summary>Gets or sets whether the dialog will be automatically upgraded to enable new features.</summary>

The xml-doc is updated

<remarks>To be added.</remarks>
<remarks>
<format type="text/markdown"><![CDATA[
We don't do set because of the value class semantics, etc.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove

<remarks>To be added.</remarks>
<remarks>
<format type="text/markdown"><![CDATA[
no op on the propertyManager
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
no op on the propertyManager
No-op, always returns `0`.

The xml-doc is updated

@@ -970,7 +970,7 @@
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<summary>Gets or sets the text that is displayed when the control has no Text and is not on focus.</summary>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<summary>Gets or sets the text that is displayed when the control has no Text and is not on focus.</summary>
<summary>Gets or sets the text that is displayed when the control has no <see cref="Text"/> and is not <see cref="Control.Focused"/>.</summary>

The xml-doc is updated

@@ -163,6 +163,11 @@
<MemberValue>0</MemberValue>
<Docs>
<summary>Adds padding to the bounding rectangle to accommodate overhanging glyphs.</summary>
<remarks>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove all of these.
The xml-doc is updated

@mairaw
Copy link
Contributor

mairaw commented Aug 16, 2019

As I mentioned earlier, I've opened separate PRs for the relevant changes so I think this PR can be closed.

The only comment still left I believe is this one:
#2974 (comment)

@RussKie
Copy link
Contributor Author

RussKie commented Aug 16, 2019

Thank you

@RussKie RussKie closed this Aug 16, 2019
@RussKie RussKie deleted the update-winforms-docs branch August 16, 2019 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants