How to: Remove Items from Windows Forms DomainUpDown Controls
You can remove items from the Windows Forms DomainUpDown control by calling the Remove or RemoveAt method of the DomainUpDown.DomainUpDownItemCollection class. The Remove method removes a specific item, while the RemoveAt method removes an item by its position.
To remove an item
Use the Remove method of the DomainUpDown.DomainUpDownItemCollection class to remove an item by name.
DomainUpDown1.Items.Remove("noodles")
domainUpDown1.Items.Remove("noodles");
domainUpDown1->Items->Remove("noodles");
-or-
Use the RemoveAt method to remove an item by its position.
' Removes the first item in the list. DomainUpDown1.Items.RemoveAt(0)
// Removes the first item in the list. domainUpDown1.Items.RemoveAt(0);
// Removes the first item in the list. domainUpDown1->Items->RemoveAt(0);
See also
Sadarbojieties ar mums vietnē GitHub
Šī satura avotu var atrast vietnē GitHub, kur varat arī izveidot un pārskatīt problēmas un atgādāšanas pieprasījumus. Lai iegūtu papildinformāciju, skatiet mūsu līdzstrādnieku rokasgrāmatu.
.NET Desktop feedback
Atsauksmes
https://aka.ms/ContentUserFeedback.
Drīzumā: 2024. gada laikā mēs pakāpeniski pārtrauksim izmantot “GitHub problēmas” kā atsauksmju par saturu mehānismu un aizstāsim to ar jaunu atsauksmju sistēmu. Papildinformāciju skatiet:Iesniegt un skatīt atsauksmes par