Skip to main content

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

Returns the ShapeDescription instance with updated properties.

Namespace: DevExpress.Diagram.Core

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

NuGet Package: DevExpress.Diagram.Core

Declaration

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

Optional Parameters

Name Type Default Description
id String null

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

getName Func<String> null

A function that returns the name of the shape.

getDefaultSize Func<Size> null

A function that returns the default size of the shape.

getShape DevExpress.Diagram.Core.ShapeGetter null

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

getConnectionPoints DevExpress.Diagram.Core.ShapeConnectionPointsGetter null

A delegate function that returns connection points.

getParameterCollection Func<DevExpress.Diagram.Core.ParameterCollection> null

A function that returns shape parameters.

getEditorBounds DevExpress.Diagram.Core.EditorBoundsGetter null

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

getStyleId Func<DevExpress.Diagram.Core.DiagramItemStyleId> null

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

getIsQuick Func<Boolean> null

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

getUseBackgroundAsForeground Func<Boolean> null

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

Returns

Type Description
ShapeDescription

A ShapeDescription instance with updated properties.

See Also