CreateLink

Top  Previous  Next

public Int64 CreateLink(String linkName,MyShape srcShape,Int32 srcLinkPtId,MyShape destShape,Int32 destLinkPtId)

 

Description:

 To create link line shape between source shape and dest shape.

 

Parameter:

 linkName: The link line's name

 srcShape:

  The link point id

 The dest shape

 destLinkPtId: The link point id

 

Return value:

 Return value =-1,create link line unsuccessfully

 

 

Example:

 private void button1_Click(object sender, System.EventArgs e)

 {

         myCAD1.CreateLink("LinkLine",myCAD1.MyShapes[0],0,myCAD1.MyShapes[1],0);

 }