Skip to main content

FactoryItemTool(String, Func<String>, Func<IDiagramControl, ItemUsage, IDiagramItem>, Nullable<Size>, Boolean) Constructor

Initializes a new instance of the FactoryItemTool class.

Namespace: DevExpress.Diagram.Core

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

Declaration

public FactoryItemTool(
    string id,
    Func<string> getName,
    Func<IDiagramControl, ItemUsage, IDiagramItem> createItem,
    Size? defaultSize = null,
    bool isQuick = false
)

Parameters

Name Type Description
id String

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

getName Func<String>

A function that returns the name of the tool.

createItem Func<DevExpress.Diagram.Core.IDiagramControl, ItemUsage, DevExpress.Diagram.Core.IDiagramItem>

A function that creates the item.

Optional Parameters

Name Type Default Description
defaultSize Nullable<Size> null

The default item size.

isQuick Boolean False

true to display the item in the Quick Shapes category of the Shapes Panel; otherwise, false.

See Also