'宣言 Public Property DropDownButtonAlignment As Infragistics.Win.ButtonAlignment
public Infragistics.Win.ButtonAlignment DropDownButtonAlignment {get; set;}
UltraComboEditor コントロールは、コントロールの右側(デフォルト)または左側のいずれかにドロップダウンボタンを配置する機能を提供します。
Private Sub SwapAlignment() Me.UltraComboEditor1.DropDownListWidth = 150 If Me.UltraComboEditor1.DropDownButtonAlignment = Infragistics.Win.ButtonAlignment.Right Then Me.UltraComboEditor1.DropDownButtonAlignment = Infragistics.Win.ButtonAlignment.Left Me.UltraComboEditor1.DropDownListAlignment = Infragistics.Win.DropDownListAlignment.Right Else Me.UltraComboEditor1.DropDownButtonAlignment = Infragistics.Win.ButtonAlignment.Right Me.UltraComboEditor1.DropDownListAlignment = Infragistics.Win.DropDownListAlignment.Left End If End Sub
private void SwapAlignment() { this.ultraComboEditor1.DropDownListWidth = 150; if(this.ultraComboEditor1.DropDownButtonAlignment == Infragistics.Win.ButtonAlignment.Right) { this.ultraComboEditor1.DropDownButtonAlignment = Infragistics.Win.ButtonAlignment.Left; this.ultraComboEditor1.DropDownListAlignment = Infragistics.Win.DropDownListAlignment.Right ; } else { this.ultraComboEditor1.DropDownButtonAlignment = Infragistics.Win.ButtonAlignment.Right; this.ultraComboEditor1.DropDownListAlignment = Infragistics.Win.DropDownListAlignment.Left; } }