windowsforms-devexpress-dot-xtradiagram-dot-diagramcontrol-6744f669.md
This property is obsolete. Use the DiagramOptionsBehavior.SelectedStencils property instead.
Namespace : DevExpress.XtraDiagram
Assembly : DevExpress.XtraDiagram.v25.2.dll
NuGet Package : DevExpress.Win.Diagram
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public StencilCollection SelectedStencils { get; set; }
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
Public Property SelectedStencils As StencilCollection
| Type |
|---|
| DevExpress.Diagram.Core.StencilCollection |
The following code snippets (auto-collected from DevExpress Examples) contain references to the SelectedStencils 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.
RegisterCustomShapes();
this.diagramControl1.SelectedStencils = new StencilCollection(new string[] { "CustomShapes" });
}
RegisterCustomShapes();
this.diagramControl1.SelectedStencils = new StencilCollection(new string[] { "CustomShapes" });
}
continue;
diagram.SelectedStencils = new StencilCollection(new string[] {
DiagramToolboxRegistrator.Stencils.ElementAt(i).Id
diagramControl1.OptionsBehavior.Stencils = new DiagramStencilCollection(DiagramToolboxRegistrator.Stencils.Concat(new[] { customContainersStencil }));
diagramControl1.SelectedStencils = new StencilCollection(MyContainersStencilName, BasicShapes.StencilId);
}
winforms-diagram-use-custom-functions-in-shape-templates/CS/WindowsFormsApp4/Form1.cs#L20
diagramControl1.SelectedStencils = new StencilCollection() { "CustomStencil" };
}
RegisterCustomShapes()
Me.diagramControl1.SelectedStencils = New StencilCollection(New String() {"CustomShapes"})
End Sub
RegisterCustomShapes()
Me.diagramControl1.SelectedStencils = New StencilCollection(New String() { "CustomShapes" })
End Sub
If i = 0 Then Continue For
diagram.SelectedStencils = New StencilCollection(New String() {Enumerable.ElementAt(DiagramToolboxRegistrator.Stencils, i).Id})
Using stream = New MemoryStream()
diagramControl1.OptionsBehavior.Stencils = New DiagramStencilCollection(DiagramToolboxRegistrator.Stencils.Concat({customContainersStencil}))
diagramControl1.SelectedStencils = New StencilCollection(MyContainersStencilName, BasicShapes.StencilId)
End Sub
winforms-diagram-use-custom-functions-in-shape-templates/VB/WindowsFormsApp4/Form1.vb#L22
DiagramToolboxRegistrator.RegisterStencil(stencil)
diagramControl1.SelectedStencils = New StencilCollection() From {"CustomStencil"}
End Sub
See Also