'宣言 Public Property DropDownListAlignment As Infragistics.Win.DropDownListAlignment
public Infragistics.Win.DropDownListAlignment DropDownListAlignment {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; } }