wpf-devexpress-dot-xpf-dot-diagram-dot-diagramcontainerbase.md
Provides access to the collection of diagram items placed within the container.
Namespace : DevExpress.Xpf.Diagram
Assembly : DevExpress.Xpf.Diagram.v25.2.dll
NuGet Package : DevExpress.Wpf.Diagram
public DiagramItemCollection Items { get; }
Public ReadOnly Property Items As DiagramItemCollection
| Type | Description |
|---|---|
| DevExpress.Xpf.Diagram.DiagramItemCollection |
The collection of diagram items.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Items property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
wpf-diagram-proportionally-resize-shapes-within-container/CS/WpfApp13/MainWindow.xaml.cs#L25
e.Items.Remove(customContainer);
foreach (var item in customContainer.Items)
e.Items.Add(item);
wpf-diagram-create-rotatable-containers-with-shapes/CS/WpfApp13/MainWindow.xaml.cs#L34
e.Items.Remove(container);
foreach (var item in container.Items)
e.Items.Add(item);
wpf-diagram-proportionally-resize-shapes-within-container/VB/WpfApp13/MainWindow.xaml.vb#L26
e.Items.Remove(customContainer)
For Each item In customContainer.Items
e.Items.Add(item)
wpf-diagram-create-rotatable-containers-with-shapes/VB/WpfApp13/MainWindow.xaml.vb#L38
e.Items.Remove(container)
For Each item In container.Items
e.Items.Add(item)
Dim first As Boolean = True
For Each item In AssociatedObject.Items
AddChild(item, first)
See Also