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.v24.1.Core.dll
NuGet Package: DevExpress.Diagram.Core
Declaration
public FactoryItemTool(
string id,
Func<string> getName,
Func<IDiagramControl, 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, 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