示例#1
0
 /// <summary>
 ///		Applies combo box specific settings to the control.
 /// </summary>
 /// <param name="window">The window holding the control.</param>
 /// <param name="control">The control proxy.</param>
 private void InternalApply(OfficeWindow window, CommandBarComboBox control)
 {
     control.Style           = style;
     control.DropDownLines   = dropDownLines;
     control.DropDownWidth   = dropDownWidth;
     control.ListHeaderCount = headerCount;
     control.Clear();
     foreach (string item in items)
     {
         control.AddItem(item, System.Reflection.Missing.Value);
     }
 }