mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 19:47:22 +00:00
21 lines
759 B
C#
21 lines
759 B
C#
namespace AIStudio.Tools.PowerPoint;
|
|||
|
|
|
||
|
|
internal static class TemplateSlideElementKindExtensions
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// How the kind is called in the list of template slides the model reads.
|
||
|
|
/// </summary>
|
||
|
|
public static string CatalogName(this TemplateSlideElementKind kind) => 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",
|
||
|
|
|
||
|
|
_ => "object",
|
||
|
|
};
|
||
|
|
}
|