Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

feat(facade): f-worksheet add getName method (#2042)

ljcoder10cc6e1526b1
diff --git a/packages/facade/src/apis/sheets/f-worksheet.ts b/packages/facade/src/apis/sheets/f-worksheet.ts
index dfa0d48143..8ed95d34a2 100644
--- a/packages/facade/src/apis/sheets/f-worksheet.ts
+++ b/packages/facade/src/apis/sheets/f-worksheet.ts
@@ -39,6 +39,14 @@ export class FWorksheet {
return this._worksheet.getSheetId();
}
+ /**
+ * Returns the name of the worksheet.
+ * @returns name of the worksheet
+ */
+ getName(): string {
+ return this._worksheet.getName();
+ }
+
getSelection(): FSelection | null {
const selections = this._selectionManagerService.getSelections();
if (!selections) {