Flowsheet BaseDelete Selected Object 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
Assembly: DWSIM.FlowsheetBase (in DWSIM.FlowsheetBase.dll) Version: 10.0.0.0
C#
public void DeleteSelectedObject(
Object sender,
EventArgs e,
IGraphicObject gobj,
bool confirmation = true,
bool triggercalc = false
)VB
Public Sub DeleteSelectedObject (
sender As Object,
e As EventArgs,
gobj As IGraphicObject,
Optional confirmation As Boolean = true,
Optional triggercalc As Boolean = 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.