<span style="color: rgb(105, 105, 105); font-family: 'Microsoft Yahei', Simsun; ">Transaction transaction = new Transaction(activeDoc, "create text note"); //created by Joe Ye </span>
<span style="color: rgb(105, 105, 105); font-family: 'Microsoft Yahei', Simsun; "> //show the bounding in the view to see the calculated boundary of the text.,you can remove it. </span>
<span style="color: rgb(105, 105, 105); font-family: 'Microsoft Yahei', Simsun; "> Line line1 = activeDoc.Application.Create.NewLineBound(bounding.Min, new XYZ(bounding.Max.X,bounding.Min.Y,0)); </span>