FlowsheetBaseAddObject(ObjectType, Int32, Int32, String, String) Method

Creates a simulation object with an explicit ID, places its graphic on the surface, and returns the new object.

Definition

Namespace: DWSIM.FlowsheetBase
Assembly: DWSIM.FlowsheetBase (in DWSIM.FlowsheetBase.dll) Version: 10.0.0.0
public ISimulationObject AddObject(
	ObjectType t,
	int xcoord,
	int ycoord,
	string id,
	string tag
)

Parameters

t  ObjectType
The type of object to create.
xcoord  Int32
The X coordinate on the drawing surface.
ycoord  Int32
The Y coordinate on the drawing surface.
id  String
The unique identifier to assign to the new object.
tag  String
A user-visible label for the new object.

Return Value

ISimulationObject
The newly created ISimulationObject.

Implements

IFlowsheetAddObject(ObjectType, Int32, Int32, String, String)

See Also