Skip to content

Commit d87545a

Browse files
authored
Add AORE exceptions for Preview 5 and 6 (#4359)
* add aore for preview 5 and 6
1 parent a9a8413 commit d87545a

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

xml/System.Windows.Forms/ListBox+IntegerCollection.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,10 +383,11 @@
383383
<Parameter Name="index" Type="System.Int32" />
384384
</Parameters>
385385
<Docs>
386-
<param name="index">The position of the <see cref="P:System.Windows.Forms.ListBox.IntegerCollection.Item(System.Int32)" /> in the collection.</param>
387-
<summary>Gets or sets the <see cref="P:System.Windows.Forms.ListBox.IntegerCollection.Item(System.Int32)" /> having the specified index.</summary>
388-
<value>The selected <see cref="P:System.Windows.Forms.ListBox.IntegerCollection.Item(System.Int32)" /> at the specified position.</value>
386+
<param name="index">The position of the element in the collection.</param>
387+
<summary>Gets or sets the element at the specified index.</summary>
388+
<value>The element at the specified index.</value>
389389
<remarks>To be added.</remarks>
390+
<exception cref="T:System.ArgumentOutOfRangeException">.NET 5.0 and later: <paramref name="index" /> is out of range.</exception>
390391
</Docs>
391392
</Member>
392393
<Member MemberName="Remove">

xml/System.Windows.Forms/TreeNode.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,9 +1256,7 @@
12561256
> [!NOTE]
12571257
> The default value of the <xref:System.Windows.Forms.TreeNode.ImageIndex%2A> property is the same as the <xref:System.Windows.Forms.TreeView.ImageIndex%2A> property of the <xref:System.Windows.Forms.TreeView> control that the <xref:System.Windows.Forms.TreeNode> is assigned to.
12581258
1259-
The <xref:System.Windows.Forms.TreeNode.ImageKey%2A> and <xref:System.Windows.Forms.TreeNode.ImageIndex%2A> properties are mutually exclusive; therefore, if one property is set, the other is ignored. If you set the <xref:System.Windows.Forms.TreeNode.ImageKey%2A> property, the <xref:System.Windows.Forms.TreeNode.ImageIndex%2A> property is automatically set to -1. Alternatively, if you set <xref:System.Windows.Forms.TreeNode.ImageIndex%2A>, <xref:System.Windows.Forms.TreeNode.ImageKey%2A> is automatically set to an empty string ("").
1260-
1261-
1259+
The <xref:System.Windows.Forms.TreeNode.ImageKey%2A> and <xref:System.Windows.Forms.TreeNode.ImageIndex%2A> properties are mutually exclusive; therefore, if one property is set, the other is ignored. If you set the <xref:System.Windows.Forms.TreeNode.ImageKey%2A> property, the <xref:System.Windows.Forms.TreeNode.ImageIndex%2A> property is automatically set to -1. Alternatively, if you set <xref:System.Windows.Forms.TreeNode.ImageIndex%2A>, <xref:System.Windows.Forms.TreeNode.ImageKey%2A> is automatically set to an empty string ("").
12621260
12631261
## Examples
12641262
The following code example creates and assigns an <xref:System.Windows.Forms.ImageList> to a <xref:System.Windows.Forms.TreeView> control and fills the <xref:System.Windows.Forms.TreeView> control with <xref:System.Windows.Forms.TreeNode> objects. The tree nodes are assigned images from the <xref:System.Windows.Forms.ImageList> that is displayed when the tree node is in a selected or unselected state. This example requires that you have a <xref:System.Windows.Forms.Form> that contains a <xref:System.Windows.Forms.TreeView>, and an <xref:System.Collections.ArrayList> that contains `Customer` objects that each contain `Order` objects. It also requires that the `Customer` and `Order` objects are defined.
@@ -1269,6 +1267,7 @@
12691267
12701268
]]></format>
12711269
</remarks>
1270+
<exception cref="T:System.ArgumentOutOfRangeException">.NET 5.0 and later: <paramref name="value" /> is out of range.</exception>
12721271
<altmember cref="T:System.Windows.Forms.ImageList" />
12731272
<altmember cref="P:System.Windows.Forms.TreeView.ImageList" />
12741273
<altmember cref="P:System.Windows.Forms.TreeNode.SelectedImageIndex" />
@@ -2096,9 +2095,7 @@
20962095
The <xref:System.Windows.Forms.TreeNode.SelectedImageIndex%2A> value is the index value of an <xref:System.Drawing.Image> stored in the <xref:System.Windows.Forms.ImageList> assigned to the <xref:System.Windows.Forms.TreeView.ImageList%2A?displayProperty=nameWithType> property.
20972096
20982097
> [!NOTE]
2099-
> The default value of the <xref:System.Windows.Forms.TreeNode.SelectedImageIndex%2A> property is the same as the <xref:System.Windows.Forms.TreeView.SelectedImageIndex%2A> property of the <xref:System.Windows.Forms.TreeView> control that the <xref:System.Windows.Forms.TreeNode> is assigned to.
2100-
2101-
2098+
> The default value of the <xref:System.Windows.Forms.TreeNode.SelectedImageIndex%2A> property is the same as the <xref:System.Windows.Forms.TreeView.SelectedImageIndex%2A> property of the <xref:System.Windows.Forms.TreeView> control that the <xref:System.Windows.Forms.TreeNode> is assigned to.
21022099
21032100
## Examples
21042101
The following code example creates and assigns an <xref:System.Windows.Forms.ImageList> to a <xref:System.Windows.Forms.TreeView> control and fills the <xref:System.Windows.Forms.TreeView> control with <xref:System.Windows.Forms.TreeNode> objects. The tree nodes are assigned images from the <xref:System.Windows.Forms.ImageList> that is displayed when the tree node is in a selected or unselected state. This example requires that you have a <xref:System.Windows.Forms.Form> containing a <xref:System.Windows.Forms.TreeView>, and an <xref:System.Collections.ArrayList> containing `Customer` objects that each contain `Order` objects. It also requires that the `Customer` and `Order` objects are defined.
@@ -2109,6 +2106,7 @@
21092106
21102107
]]></format>
21112108
</remarks>
2109+
<exception cref="T:System.ArgumentOutOfRangeException">.NET 5.0 and later: <paramref name="value" /> is out of range.</exception>
21122110
<altmember cref="P:System.Windows.Forms.TreeNode.ImageIndex" />
21132111
</Docs>
21142112
</Member>

0 commit comments

Comments
 (0)