//create a new workbook var workbook = new GrapeCity.Documents.Excel.Workbook(); IWorksheet worksheet = workbook.Worksheets[0]; var shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, worksheet.Range["C2:E6"]); shape.TextFrame.TextRange.Add("グレープシティへようこそ"); //Set the text direction to be stacked, and the text reading order from right to left. shape.TextFrame.Direction = TextDirection.StackedRtl; // Save to an excel file workbook.Save("SetShapeTextDirection.xlsx");
' Create a new Workbook Dim workbook As New Workbook Dim worksheet As IWorksheet = workbook.Worksheets(0) Dim shape As IShape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, worksheet.Range("C2:E6")) shape.TextFrame.TextRange.Add("グレープシティへようこそ") 'Set the text direction to be stacked, And the text reading order from right to left. shape.TextFrame.Direction = TextDirection.StackedRtl ' save to an excel file workbook.Save("SetShapeTextDirection.xlsx")