TX Sheet Control

EditorUi Interface

Interface

Editor-only state and commands. These settings do not belong in server-side workbook data.

Package: @txtextcontrol/tx-sheet-control-server. Version: 2.0.0.

Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.

Members

Properties

PropertyDescription
areasVisible editor chrome; complete snapshots are returned and partial patches are accepted.
commentsScreen-only comments controls; the sidebar and popup never enter printed workbook data.
languageInterface language, independent of value/number formatting locale.
printContextHeader/footer field context; reads return a detached copy and assignments validate the complete context.
resolvedThemeEffective light/dark theme after resolving the automatic system preference.
ribbonRibbon presentation, visibility and policies for built-in commands.
selectionThe selection value of EditorUi.
themeThe theme value of EditorUi.
viewModeThe viewMode value of EditorUi.
zoomGets or sets worksheet zoom, rounded and clamped to 25–400 percent.
highlightDependentsEnable brief feedback on dependent formula cells.

Methods

MethodDescription
autoFitColumnsThe autoFitColumns operation of EditorUi.
autoFitRowsAuto-fits inclusive zero-based indices (or the current selection), waiting for deployed fonts.
clearArrowsThe clearArrows operation of EditorUi.
commitEditCommits a pending cell edit; false means validation keeps the editor open.
loadMergeDataLoads the application's mail-merge data source without putting transient data in workbook JSON.
selectChartThe selectChart operation of EditorUi.
selectDrawingSelects a drawing/chart owned by this editor, switching to its sheet. Foreign/stale handles throw.
selectRangeThe selectRange operation of EditorUi.
selectSheetThe selectSheet operation of EditorUi.
setResourcesApplies application localization overrides to the current interface language.
setThemeThe setTheme operation of EditorUi.
setViewModeThe setViewMode operation of EditorUi.
setZoomSets worksheet zoom, rounded and clamped to 25–400 percent, and returns the applied value.
traceDependentsThe traceDependents operation of EditorUi.
tracePrecedentsDraws screen-only formula traces for the active cell; returns cross-sheet references.

Examples

Pass the EditorUi value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

function inspectEditorUiResolvedTheme(editorUi: { resolvedTheme: unknown }) {
    const value = editorUi['resolvedTheme'];
    console.log('EditorUi.resolvedTheme', value);
}

See Also

Additional and Inherited Members

MemberOwnership
pivotTablesType-only browser contract; use it on a mounted browser editor.