facebooktwittermenuarrow-up

GemBox Support Forum

Rounded Rectangle corner radius

Hi,

I can add a Rounded Rectangle, but i want to tighten the radius on the corners. Is there a way to do this through code?

So be like the one on the right instead of the one on the left.
image

Kind regards,
Nathan

Hi Nathan,

Try this:

var presentation = new PresentationDocument();
var slide = presentation.Slides.AddNew(SlideLayoutType.Custom);
var shape = slide.Content.AddShape(ShapeGeometryType.RoundedRectangle, 10, 10, 200, 100, LengthUnit.Point);

shape.Geometry.AdjustValues.AddLiteralValue("adj", 8000);

presentation.Save("Shapes.pptx");

I hope this helps.

Regards,
Mario