Deletes the current run.
This method doesn't have any parameters.
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); var oFill = Api.CreateSolidFill(Api.CreateRGBColor(255, 111, 61)); var oStroke = Api.CreateStroke(0, Api.CreateNoFill()); var oShape = oWorksheet.AddShape("flowChartOnlineStorage", 60 * 36000, 35 * 36000, oFill, oStroke, 0, 2 * 36000, 0, 3 * 36000); var oDocContent = oShape.GetContent(); var oParagraph = oDocContent.GetElement(0); var oRun = Api.CreateRun(); oRun.AddText("This is just a sample text."); oParagraph.AddElement(oRun); oRun.Delete(); oWorksheet.GetRange("A9").SetValue("The run from the shape content was removed."); builder.SaveFile("xlsx", "Delete.xlsx"); builder.CloseFile();