C1DockingTab をフォームに追加するには、以下の基本操作を実行します。
注意:C1CommandDockプロパティの FloatHide を使用し、C1DockingTabPage の実行時の動作を制御できます。このプロパティにより、アプリケーションがフォーカスを消失したときもタブページがフォーカスを維持するように選択できます。FloatHide には Default、Never、または FocusLost の3つの可能な設定があります。
In C1CommandDock, the floating tabpages can be docked using Left, Top, Right, Bottom, and Diamond anchors. When docking the tabpages in the container, existing tabs may become hidden due to the space occupied by the new tab. In such scenarios, C1CommandDock allows you to set a minimum tab size for existing tabs through CentralTabMinimumSize property available in C1CommandDock class. The CentralTabMinimumSize accepts a non-negative value, either as a percentage or an absolute value. The percentage value specifies the minimum space reserved for the existing tabs as a proportion of the parent container, whereas absolute value specifies the space in terms of pixels.
Note: The CentralTabMinimumSize property requires at least two tabpages present in container while a new tab is docked in that area.
The image below illustrates how the CentralTabMinimumSize property preserves space for the existing tabs in C1CommandDock while new tab is being docked.
The below code snippet illustrates setting the CentralTabMinimumSize property with value 150px for central tabs in C1CommandDock.
C# |
コードのコピー
|
---|---|
c1CommandDock1.CentralTabMinimumSize.WidthType = SizeType.Absolute; c1CommandDock1.CentralTabMinimumSize.Width = 150; |