Back to Devexpress

DiagramContainer.Items Property

windowsforms-devexpress-dot-xtradiagram-dot-diagramcontainer.md

latest3.2 KB
Original Source

DiagramContainer.Items Property

Provides access to the collection of diagram items placed within the container.

Namespace : DevExpress.XtraDiagram

Assembly : DevExpress.XtraDiagram.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

csharp
[Browsable(false)]
public virtual DiagramItemCollection Items { get; }
vb
<Browsable(False)>
Public Overridable ReadOnly Property Items As DiagramItemCollection

Property Value

TypeDescription
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.

winforms-diagram-proportionally-resize-shapes-within-container/CS/WindowsFormsApp4/Form1.cs#L34

csharp
e.Items.Remove(customContainer);
foreach (var item in customContainer.Items)
    e.Items.Add(item);

winforms-diagram-create-rotatable-containers-with-shapes/CS/WindowsFormsApp4/Form1.cs#L32

csharp
e.Items.Remove(customContainer);
foreach (var item in customContainer.Items)
    e.Items.Add(item);

winforms-diagram-proportionally-resize-shapes-within-container/VB/WindowsFormsApp4/Form1.vb#L34

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

winforms-diagram-create-rotatable-containers-with-shapes/VB/WindowsFormsApp4/Form1.vb#L35

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

See Also

DiagramContainer Class

DiagramContainer Members

DevExpress.XtraDiagram Namespace