/// <summary> /// Устанавливает расположение закладок. /// </summary> public void SetHeaderLocation(TabHeaderLocation value) { _headerLocation = value; switch (value) { case TabHeaderLocation.None: Control.HeaderLocation = CaptionLocation.Default; break; case TabHeaderLocation.Left: Control.HeaderLocation = CaptionLocation.Left; break; case TabHeaderLocation.Top: Control.HeaderLocation = CaptionLocation.Top; break; case TabHeaderLocation.Right: Control.HeaderLocation = CaptionLocation.Right; break; case TabHeaderLocation.Bottom: Control.HeaderLocation = CaptionLocation.Bottom; break; } }
/// <summary> /// Устанавливает расположение закладок. /// </summary> public void SetHeaderLocation(TabHeaderLocation value) { _headerLocation = value; var tabView = Control.View; if (tabView != null) { switch (value) { case TabHeaderLocation.None: tabView.HeaderLocation = HeaderLocation.None; break; case TabHeaderLocation.Left: tabView.HeaderLocation = HeaderLocation.Left; break; case TabHeaderLocation.Top: tabView.HeaderLocation = HeaderLocation.Top; break; case TabHeaderLocation.Right: tabView.HeaderLocation = HeaderLocation.Right; break; case TabHeaderLocation.Bottom: tabView.HeaderLocation = HeaderLocation.Bottom; break; } } }
public TabControlConstructor(Control controlToAttach, string skinName, DefaultBoolean headerAutoFill, int selectedtabIndex, DockStyle dockStyle, BorderStyles borderStyles, BorderStyles borderStylePage, TabHeaderLocation tabHeaderLocation, bool showPreviousAndNextButtons, TabButtonShowMode tabButtonShowMode, TabOrientation tabOrientation, List <TabPageControlConstructor> tabPagesList) { ParentControlToAttach = controlToAttach; SkinName = skinName; HeaderAutoFill = headerAutoFill; SelectedTabIndex = selectedtabIndex; DockStyle = dockStyle; BorderStyles = borderStyles; BorderStylePage = borderStylePage; TabHeaderLocation = tabHeaderLocation; ShowPreviousAndNextButtons = showPreviousAndNextButtons; TabButtonShowMode = tabButtonShowMode; TabOrientation = tabOrientation; TabPagesList = tabPagesList; }