DockGroup 类¶
在停靠布局中水平或垂直排列停靠项。
命名空间: Eremex.AvaloniaUI.Controls.Docking
程序集: Eremex.Avalonia.Controls.dll
NuGet 包: Eremex.Avalonia.Controls
声明¶
构造函数¶
| 名称 | 说明 |
|---|---|
| DockGroup() | 初始化 DockGroup 类的新实例。 |
属性¶
| 名称 | 说明 |
|---|---|
| IsDocumentHost { get; set; } | 获取或设置该组是否承载文档窗格。 |
| Item { get; } | 获取指定索引处的子项。 |
| ItemCount { get; } | 获取组中子项的数量。 |
| Items { get; } | 获取子停靠项的集合。 |
| Orientation { get; set; } | 获取或设置子项是水平排列还是垂直排列。 |
方法¶
| 名称 | 说明 |
|---|---|
| Add(…) | 将指定的子项添加到组中。 |
| AddRange(…) | 将指定的多个子项添加到组中。 |
| Clear() | 从组中移除所有子项。 |
| Insert(…) | 在指定索引处插入指定的子项。 |
| Remove(…) | 从组中移除指定的子项。 |
另请参阅¶
* 本页面使用机器翻译技术翻译。
Used in articles
- Docking UI › Dock Manager and Dock Items
- Docking UI › Dock Panes and Containers
- Docking UI › Document Panes
- Docking UI › Get Started with Docking
- Docking UI › Migrate from WinForms and WPF Docking to Avalonia Docking UI
- Docking UI › Perform Dock Operations in Code
- Docking UI › Use MVVM Pattern to Populate Dock Items