2026-10-25 18:52:39 +01:00
|
|
|
namespace AIStudio.Tools.PowerPoint;
|
|
|
|
|
|
|
|
|
|
internal static class TemplateSlideElementKindExtensions
|
|
|
|
|
{
|
2026-11-04 10:46:18 +01:00
|
|
|
extension(TemplateSlideElementKind kind)
|
2026-10-25 18:52:39 +01:00
|
|
|
{
|
2026-11-04 10:46:18 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// How the kind is called in the list of template slides the model reads.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string CatalogName() => kind switch
|
|
|
|
|
{
|
|
|
|
|
TemplateSlideElementKind.TEXT_BOX => "text box",
|
|
|
|
|
TemplateSlideElementKind.SHAPE => "shape",
|
|
|
|
|
TemplateSlideElementKind.LINE => "line",
|
|
|
|
|
TemplateSlideElementKind.PICTURE => "picture",
|
|
|
|
|
TemplateSlideElementKind.TABLE => "table",
|
|
|
|
|
TemplateSlideElementKind.CHART => "chart",
|
|
|
|
|
TemplateSlideElementKind.DIAGRAM => "diagram",
|
|
|
|
|
TemplateSlideElementKind.GROUP => "group",
|
2026-10-25 18:52:39 +01:00
|
|
|
|
2026-11-04 10:46:18 +01:00
|
|
|
_ => "object",
|
|
|
|
|
};
|
|
|
|
|
}
|
2026-10-25 18:52:39 +01:00
|
|
|
}
|