mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 02:47:21 +00:00
Moved all extension methods into extension blocks (#1155)
This commit is contained in:
1 parent
acc7d09fa2
commit
c0a75f39ac
138 files changed
+5884
-4954
No files matched your search
@@ -2,20 +2,23 @@ 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
|
||||
extension(TemplateSlideElementKind kind)
|
||||
{
|
||||
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",
|
||||
/// <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",
|
||||
|
||||
_ => "object",
|
||||
};
|
||||
_ => "object",
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user