Back to Devexpress

DiagramContainerBase.Items Property

wpf-devexpress-dot-xpf-dot-diagram-dot-diagramcontainerbase.md

latest3.4 KB
Original Source

DiagramContainerBase.Items Property

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

Declaration

csharp
public DiagramItemCollection Items { get; }
vb
Public ReadOnly Property Items As DiagramItemCollection

Property Value

TypeDescription
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

csharp
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

csharp
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

vb
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

vb
e.Items.Remove(container)
For Each item In container.Items
    e.Items.Add(item)

wpf-generate-diagram-with-grouped-items/VB/DiagramNestedItemsExample/StackLayoutDiagramContainerBehavior.vb#L39

vb
Dim first As Boolean = True
For Each item In AssociatedObject.Items
    AddChild(item, first)

See Also

DiagramContainerBase Class

DiagramContainerBase Members

DevExpress.Xpf.Diagram Namespace