You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System.Windows.Forms/ComboBox.xml
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3919,7 +3919,9 @@
3919
3919
<formattype="text/markdown"><![CDATA[
3920
3920
3921
3921
## Remarks
3922
-
Setting the <xref:System.Windows.Forms.ComboBox.Text%2A> property to `null` or an empty string ("") sets the <xref:System.Windows.Forms.ComboBox.SelectedIndex%2A> to -1. Setting the <xref:System.Windows.Forms.ComboBox.Text%2A> property to a value that is in the <xref:System.Windows.Forms.ComboBox.Items%2A> collection sets the <xref:System.Windows.Forms.ComboBox.SelectedIndex%2A> to the index of that item. Setting the <xref:System.Windows.Forms.ComboBox.Text%2A> property to a value that is not in the collection leaves the <xref:System.Windows.Forms.ComboBox.SelectedIndex%2A> unchanged.
3922
+
Setting the <xref:System.Windows.Forms.ComboBox.Text%2A> property to `null` or an empty string ("") sets the <xref:System.Windows.Forms.ComboBox.SelectedIndex%2A> to -1. Setting the <xref:System.Windows.Forms.ComboBox.Text%2A> property to a value that is in the <xref:System.Windows.Forms.ComboBox.Items%2A> collection sets the <xref:System.Windows.Forms.ComboBox.SelectedIndex%2A> to the index of that item. Setting the <xref:System.Windows.Forms.ComboBox.Text%2A> property to a value that is not in the collection leaves the <xref:System.Windows.Forms.ComboBox.SelectedIndex%2A> unchanged.
3923
+
3924
+
Reading the <xref:System.Windows.Forms.ComboBox.Text%2A> property returns the text of <xref:System.Windows.Forms.ComboBox.SelectedItem%2A>, if it is not `null`.
0 commit comments