Skip to content

Add ArgumentException and ANE to GetToolTipText #4178

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

Merged
merged 4 commits into from
May 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions xml/System.Windows.Forms/TabControl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -751,12 +751,11 @@

]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="tabPageName" /> is <see langword="null" />.
<exception cref="T:System.ArgumentNullException">The <paramref name="tabPageName" /> argument is <see langword="null" />.

-or-

<paramref name="tabPageName" /> does not match the <see cref="P:System.Windows.Forms.Control.Name" /> property of any <see cref="T:System.Windows.Forms.TabPage" /> in the <see cref="P:System.Windows.Forms.TabControl.TabPages" /> collection.</exception>
The <paramref name="tabPageName" /> argument does not match the <see cref="P:System.Windows.Forms.Control.Name" /> property of any <see cref="T:System.Windows.Forms.TabPage" /> in the <see cref="P:System.Windows.Forms.TabControl.TabPages" /> collection.</exception>
<altmember cref="T:System.Windows.Forms.TabPage" />
<altmember cref="Overload:System.Windows.Forms.TabControl.SelectTab" />
<altmember cref="P:System.Windows.Forms.TabControl.SelectedIndex" />
Expand Down Expand Up @@ -804,8 +803,7 @@
-or-

<paramref name="tabPage" /> is not in the <see cref="P:System.Windows.Forms.TabControl.TabPages" /> collection.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="tabPage" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentNullException">The <paramref name="tabPage" /> argument is <see langword="null" />.</exception>
<altmember cref="T:System.Windows.Forms.TabPage" />
<altmember cref="Overload:System.Windows.Forms.TabControl.SelectTab" />
<altmember cref="P:System.Windows.Forms.TabControl.SelectedIndex" />
Expand Down Expand Up @@ -1248,6 +1246,8 @@
<summary>Gets the ToolTip for the specified <see cref="T:System.Windows.Forms.TabPage" />.</summary>
<returns>The ToolTip text.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">.NET 5.0 and later: The <paramref name="item" /> argument is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">.NET 5.0 and later: The <paramref name="item" /> argument is not of type <see cref="T:System.Windows.Forms.TabPage" />.</exception>
</Docs>
</Member>
<Member MemberName="HotTrack">
Expand Down Expand Up @@ -2715,12 +2715,11 @@

]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="tabPageName" /> is <see langword="null" />.
<exception cref="T:System.ArgumentNullException">The <paramref name="tabPageName" /> argument is <see langword="null" />.

-or-

<paramref name="tabPageName" /> does not match the <see cref="P:System.Windows.Forms.Control.Name" /> property of any <see cref="T:System.Windows.Forms.TabPage" /> in the <see cref="P:System.Windows.Forms.TabControl.TabPages" /> collection.</exception>
The <paramref name="tabPageName" /> argument does not match the <see cref="P:System.Windows.Forms.Control.Name" /> property of any <see cref="T:System.Windows.Forms.TabPage" /> in the <see cref="P:System.Windows.Forms.TabControl.TabPages" /> collection.</exception>
<altmember cref="T:System.Windows.Forms.TabPage" />
<altmember cref="Overload:System.Windows.Forms.TabControl.DeselectTab" />
<altmember cref="P:System.Windows.Forms.TabControl.SelectedIndex" />
Expand Down Expand Up @@ -2768,8 +2767,7 @@
-or-

<paramref name="tabPage" /> is not in the <see cref="P:System.Windows.Forms.TabControl.TabPages" /> collection.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="tabPage" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentNullException">The <paramref name="tabPage" /> argument is <see langword="null" />.</exception>
<altmember cref="Overload:System.Windows.Forms.TabControl.DeselectTab" />
<altmember cref="T:System.Windows.Forms.TabPage" />
<altmember cref="P:System.Windows.Forms.TabControl.SelectedIndex" />
Expand Down