방법: Windows Forms DomainUpDown 컨트롤에서 항목 제거
DomainUpDown.DomainUpDownItemCollection 클래스의 Remove 또는 RemoveAt 메서드를 호출하여 Windows Forms DomainUpDown 컨트롤에서 항목을 제거할 수 있습니다. Remove 메서드는 특정 항목을 제거하고 RemoveAt 메서드는 특정 위치에 있는 항목을 제거합니다.
항목을 제거하려면
이름으로 항목을 제거하려면 DomainUpDown.DomainUpDownItemCollection 클래스의 Remove 메서드를 사용합니다.
DomainUpDown1.Items.Remove("noodles")
domainUpDown1.Items.Remove("noodles");
domainUpDown1->Items->Remove("noodles");
또는
특정 위치에 있는 항목을 제거하려면 RemoveAt 메서드를 사용합니다.
' 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);
참고 항목
참조
DomainUpDown 컨트롤 개요(Windows Forms)
DomainUpDown.DomainUpDownItemCollection.Remove
DomainUpDown.DomainUpDownItemCollection.RemoveAt