AI-Studio/app/MindWork AI Studio/Tools/SlideTextContent.cs
nilskruthoff 6eab9dc574
Improved docx and odt import (#890)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
2026-08-10 20:39:31 +02:00

13 lines
450 B
C#

using System.Text;
namespace AIStudio.Tools;
public sealed class SlideTextContent(string textContent) : ISlideContent
{
//
// One builder per slide, created once: an expression-bodied property would hand out a fresh
// builder on every access, so appending further text to a slide would write into a throwaway
// object and the text would never reach the slide.
//
public StringBuilder Text { get; } = new(textContent);
}