Back to Devexpress

DiagramControl Class

windowsforms-devexpress-dot-xtradiagram.md

latest5.8 KB
Original Source

DiagramControl Class

Provides a canvas where you or your end-users can display, create and edit various diagrams.

Namespace : DevExpress.XtraDiagram

Assembly : DevExpress.XtraDiagram.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

csharp
[DXLicenseWinForms]
public class DiagramControl :
    DiagramControlBase,
    IDiagramControl,
    ILayersHost,
    ICommandAwareControl<DiagramCommandId>,
    IServiceProvider,
    IMouseWheelSupport,
    ISupportInitialize,
    IGestureClient,
    ISupportAsyncScrollAnimation
vb
<DXLicenseWinForms>
Public Class DiagramControl
    Inherits DiagramControlBase
    Implements IDiagramControl,
               ILayersHost,
               ICommandAwareControl(Of DiagramCommandId),
               IServiceProvider,
               IMouseWheelSupport,
               ISupportInitialize,
               IGestureClient,
               ISupportAsyncScrollAnimation

The following members return DiagramControl objects:

Remarks

See the Getting Started article to learn about capabilities of the Diagram Control.

The Examples section contains a variety of task-based examples.

You can add the complete user interface by creating the Diagram Designer. To learn the basics of creating diagrams with the Diagram Designer, see Diagram Designer and End-User Interaction.

Implements

IXtraResizableControl

Inheritance

Object MarshalByRefObject Component Control DevExpress.XtraEditors.XtraControl ControlBase BaseControl DevExpress.XtraDiagram.DiagramControlBase DiagramControl

Extension Methods

Show 12 items

ForEachSelectedItem(Action<DiagramItem>)

ContainsSelection()

IsMultipleSelection()

CreateShape(ShapeDescription, Boolean)

CreateShape(ShapeDescription, RectangleF, Boolean)

CreateBitmap(Nullable<Single>, Nullable<Single>)

CreateBitmap(RectangleF, Nullable<Single>, Nullable<Single>)

ShowPrintDialog()

QuickPrintDiagram()

ShowPrintPreviewDiagram(ScaleSettings)

GetBackgroundPages(DiagramDrawingContext, Double)

DrawDetachedItem(DiagramItem, GraphicsCache)

See Also

DiagramControl Members

Diagrams

DevExpress.XtraDiagram Namespace