Skip to main content

ShapeDescription(String, Func<String>, Func<Size>, ShapeGetter, ShapeConnectionPointsGetter, Func<ParameterCollection>, EditorBoundsGetter, Func<DiagramItemStyleId>, Func<Boolean>, Func<Boolean>) Constructor

Initializes a new instance of the ShapeDescription class.

Namespace: DevExpress.Diagram.Core

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

NuGet Package: DevExpress.Diagram.Core

Declaration

public ShapeDescription(
    string id,
    Func<string> getName,
    Func<Size> getDefaultSize,
    ShapeGetter getShape,
    ShapeConnectionPointsGetter getConnectionPoints,
    Func<ParameterCollection> getParameterCollection,
    EditorBoundsGetter getEditorBounds,
    Func<DiagramItemStyleId> getStyleId,
    Func<bool> getIsQuick,
    Func<bool> getUseBackgroundAsForeground
)

Parameters

Name Type Description
id String

A System.String value that is the shape’s identifier.

getName Func<String>

A function that returns the name of the shape.

getDefaultSize Func<Size>

A function that returns the default size of the shape.

getShape DevExpress.Diagram.Core.ShapeGetter

A delegate function that returns the width, height and parameters of the shape.

getConnectionPoints DevExpress.Diagram.Core.ShapeConnectionPointsGetter

A delegate function that returns connection points.

getParameterCollection Func<DevExpress.Diagram.Core.ParameterCollection>

A function that returns shape parameters.

getEditorBounds DevExpress.Diagram.Core.EditorBoundsGetter

A delegate function that returns the boundaries of the shape’s editor.

getStyleId Func<DevExpress.Diagram.Core.DiagramItemStyleId>

A function that returns the identifier of a style to apply to the shape.

getIsQuick Func<Boolean>

A function that returns whether to display the shape within the Quick Shapes category of the toolbox.

getUseBackgroundAsForeground Func<Boolean>

A function that returns whether to paint the shape with the background color.

See Also