Hi,
Thanks for your inquiry.
Your example document contains a RoundRectangle shape. We apologize that our Spire.Doc currently does not provide an interface to directly obtain or adjust the radius of the shape. Our dev team will conduct an investigation, and we will notify you promptly if we provide further support.
Additionally, using the following code to directly replace the text in your document will not result in changes to the rounded corners of the rectangle.
- Code: Select all
Document document=new Document();
document.LoadFromFile("Example.docx");
// Replace text with long text
document.Replace("TEXT", "Spire.Doc for .NET is a professional Word .NET library specifically designed for developers to create, read, write, convert, compare and print Word documents on any .NET platform (Target .NET Framework, .NET Core, .NET Standard, .NET 5.0, .NET 6.0, Xamarin & Mono Android) with fast and high quality performance.", true, false);
document.SaveToFile("Result.docx", FileFormat.Docx2013);
Sincerely,
Nina
E-iceblue support team