Mon Sep 20, 2021 12:40 pm
Hi Annika,
Many thanks for the reply and for taking the trouble to look at this. In case it's helpful, here is sample code and a template that demonstrates the issue. I've attached both an empty template and the template after population by the code below. The triangle is misplaced in the example using Century font, but if the font is changed to 'Calibri' the triangle is correctly aligned to the top of the next row.
Dim projectTable As Spire.Presentation.ITable = ppt.Slides(0).Shapes(0)
Dim dummytext As String = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam dapibus sem eget ante auctor rutrum. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Maecenas volutpat justo et justo tristique hendrerit. Donec in magna ut turpis vehicula feugiat. Aliquam luctus lorem purus, ut volutpat felis malesuada dictum. Donec id ante urna. Vivamus id ligula eros. Donec vel ex malesuada, aliquam enim in, posuere massa. In hac habitasse platea dictumst. Vivamus et elementum mi. Praesent luctus eros consequat magna suscipit, et accumsan dui sagittis. Fusce pellentesque magna nulla, vel congue sem varius non. Vivamus justo sapien, rutrum aliquam feugiat eget, mattis in est. Suspendisse congue facilisis purus vitae fringilla. Curabitur dignissim libero a elementum tristique. Nam facilisis, justo et ullamcorper ornare, risus nulla pulvinar enim, ac tristique nisl lectus eget erat. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Nulla venenatis enim in fringilla interdum. Vivamus malesuada quis dolor quis pulvinar. Proin tempus vel risus eu sollicitudin. Nam augue lorem, tincidunt sit amet metus a, pretium euismod nisi."
projectTable(1, 1).TextFrame.TextRange.Text = dummytext
projectTable(1, 1).TextFrame.TextRange.LatinFont = New TextFont("Century")
Dim RAGTriangle = ppt.Slides(0).Shapes.AppendShape(ShapeType.RightTriangle, New RectangleF(projectTable.Frame.Left + projectTable(0, 2).OffsetX, projectTable.Frame.Top + projectTable(0, 2).OffsetY, 24, 24))
RAGTriangle.Rotation = 90
Login to view the files attached to this post.