'宣言 Public Property ValueList As Infragistics.Win.ValueList
public Infragistics.Win.ValueList ValueList {get; set;}
Private Sub SwapItemOrder() If Me.UltraOptionSet1.ValueList.SortStyle = Infragistics.Win.ValueListSortStyle.AscendingByValue Then Me.UltraOptionSet1.ValueList.SortStyle = Infragistics.Win.ValueListSortStyle.DescendingByValue Else Me.UltraOptionSet1.ValueList.SortStyle = Infragistics.Win.ValueListSortStyle.AscendingByValue End If End Sub
private void SwapItemOrder() { if(this.ultraOptionSet1.ValueList.SortStyle == Infragistics.Win.ValueListSortStyle.AscendingByValue) this.ultraOptionSet1.ValueList.SortStyle = Infragistics.Win.ValueListSortStyle.DescendingByValue; else this.ultraOptionSet1.ValueList.SortStyle = Infragistics.Win.ValueListSortStyle.AscendingByValue; }