Diagram.AddMaster

AddMaster(Diagram, string)

Adds master to diagram from source diagram by master’s Name or NameU.

public int AddMaster(Diagram srcDiagram, string masterName)
ParameterTypeDescription
srcDiagramDiagramsource diagram.
masterNameStringMaster’s Name or NameU.

Return Value

The unique ID of the master within masters collection in this diagram.

See Also


AddMaster(Stream, string)

Adds master to diagram from template stream by master’s Name or NameU.

public int AddMaster(Stream templateStream, string masterName)
ParameterTypeDescription
templateStreamStreamtemplate stream.
masterNameStringMaster’s Name or NameU.

Return Value

The unique ID of the master within masters collection in this diagram.

See Also


AddMaster(Stream, int)

Adds master to diagram from template stream by master’s ID.

public int AddMaster(Stream templateStream, int masterID)
ParameterTypeDescription
templateStreamStreamtemplate stream.
masterIDInt32The unique ID of the master within masters collection in template.

Return Value

The unique ID of the master within masters collection in this diagram.

See Also


AddMaster(string, string)

Adds master to diagram from template file by master’s Name or NameU.

public int AddMaster(string templateFilePath, string masterName)
ParameterTypeDescription
templateFilePathStringPath to template file(can be vdx, vst or vsd format).
masterNameStringMaster’s Name or NameU.

Return Value

The unique ID of the master within masters collection in this diagram.

See Also


AddMaster(string, int)

Adds master to diagram from template file by master’s ID.

public int AddMaster(string templateFilePath, int masterID)
ParameterTypeDescription
templateFilePathStringPath to template file(can be vdx, vst or vsd format).
masterIDInt32The unique ID of the master within masters collection in template.

Return Value

The unique ID of the master within masters collection in this diagram.

See Also