Back to Devexpress

XtraDiagramExtensions.CreateShape(DiagramControl, ShapeDescription, RectangleF, Boolean) Method

windowsforms-devexpress-dot-xtradiagram-dot-extensions-dot-xtradiagramextensions-dot-createshape-x28-diagramcontrol-shapedescription-rectanglef-boolean-x29.md

latest2.1 KB
Original Source

XtraDiagramExtensions.CreateShape(DiagramControl, ShapeDescription, RectangleF, Boolean) Method

Namespace : DevExpress.XtraDiagram.Extensions

Assembly : DevExpress.XtraDiagram.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

csharp
public static DiagramShape CreateShape(
    this DiagramControl diagram,
    ShapeDescription shapeDesc,
    RectangleF bounds,
    bool focusDiagram = true
)
vb
<ExtensionAttribute>
Public Shared Function CreateShape(
    diagram As DiagramControl,
    shapeDesc As ShapeDescription,
    bounds As RectangleF,
    focusDiagram As Boolean = True
) As DiagramShape

Parameters

NameType
diagramDiagramControl
shapeDescShapeDescription
boundsRectangleF

Optional Parameters

NameTypeDefault
focusDiagramBooleanTrue

Returns

Type
DiagramShape

See Also

XtraDiagramExtensions Class

XtraDiagramExtensions Members

DevExpress.XtraDiagram.Extensions Namespace