Skip to main content

ShapeDescription.Create(String, DiagramControlStringId, Func<Size>, ShapeGetter, ShapeConnectionPointsGetter, EditorBoundsGetter, DiagramItemStyleId, Boolean, Boolean) Method

Namespace: DevExpress.Diagram.Core

Assembly: DevExpress.Diagram.v24.2.Core.dll

Declaration

public static ShapeDescription Create(
    string id,
    DiagramControlStringId stringId,
    Func<Size> getDefaultSize,
    ShapeGetter getShape,
    ShapeConnectionPointsGetter getConnectionPoints,
    EditorBoundsGetter getEditorBounds,
    DiagramItemStyleId styleId = null,
    bool isQuick = false,
    bool useBackgroundAsForeground = false
)

Parameters

Name Type
id String
stringId DevExpress.Diagram.Core.Localization.DiagramControlStringId
getDefaultSize Func<Size>
getShape DevExpress.Diagram.Core.ShapeGetter
getConnectionPoints DevExpress.Diagram.Core.ShapeConnectionPointsGetter
getEditorBounds DevExpress.Diagram.Core.EditorBoundsGetter

Optional Parameters

Name Type Default
styleId DevExpress.Diagram.Core.DiagramItemStyleId null
isQuick Boolean False
useBackgroundAsForeground Boolean False

Returns

Type
ShapeDescription
See Also