Skip to main content
A newer version of this page is available. .

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

Initializes a new instance of the FactoryItemTool class.

Namespace: DevExpress.Diagram.Core

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

Declaration

public FactoryItemTool(
    string id,
    Func<string> getName,
    Func<IDiagramControl, IDiagramItem> createItem,
    Size? defaultSize = default(Size? ),
    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, 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