private void FillTabStripTextOrientation(RadDropDownList combo, TabStripTextOrientation selected) { combo.BeginUpdate(); combo.Items.Clear(); int counter = 0; int selectedIndex = -1; foreach (TabStripTextOrientation orientation in Enum.GetValues(typeof(TabStripTextOrientation))) { RadListDataItem item = new RadListDataItem(orientation.ToString()); item.Value = orientation; combo.Items.Add(item); if (orientation == selected) { selectedIndex = counter; } counter++; } combo.SelectedIndex = selectedIndex; combo.EndUpdate(); }
public TabStripPanel() { this.tabPanels = new TabPanelCollection(this); this.showTabStrip = true; this.tabStripAlign = this.DefaultTabStripAlignment; this.tabStripTextOrientation = TabStripTextOrientation.Default; this.Behavior.BitmapRepository.DisableBitmapCache = true; }
/// <summary> /// Initializes a new instance of the <see cref="DockTabStripNeededEventArgs">DockTabStripNeededEventArgs</see> class. /// </summary> /// <param name="type"></param> public DockTabStripNeededEventArgs(DockType type) { this.dockType = type; this.tabStripVisible = null; this.tabTextOrientation = TabStripTextOrientation.Default; }