FlowsheetBaseDeleteSelectedObject Method

Removes a graphic object and its associated simulation object from the flowsheet, automatically disconnecting all attached connectors and cleaning up spec/adjust references.

Definition

Namespace: DWSIM.FlowsheetBase
Assembly: DWSIM.FlowsheetBase (in DWSIM.FlowsheetBase.dll) Version: 10.0.0.0
public void DeleteSelectedObject(
	Object sender,
	EventArgs e,
	IGraphicObject gobj,
	bool confirmation = true,
	bool triggercalc = false
)

Parameters

sender  Object
The event sender (can be Nothing).
e  EventArgs
Event arguments (can be Empty).
gobj  IGraphicObject
The graphic object to delete.
confirmation  Boolean  (Optional)
When True, the implementation may prompt the user for confirmation.
triggercalc  Boolean  (Optional)
When True, triggers a recalculation after deletion.

Implements

IFlowsheetDeleteSelectedObject(Object, EventArgs, IGraphicObject, Boolean, Boolean)

See Also