Skip to content
SumOfficeSumOfficeSumOffice

DTO · Tables: placement on the page

27 interfaces and 6 type aliases from the `api-edit.ts` module — text wrapping, floating tables, autofit, and indents.

27 interfaces and 6 type aliases — text wrapping, floating tables, autofit, and indents.

Contract module: api-edit.ts.

Other topics in this module: Text and paragraphs · Tables: structure · Tables: cells and formatting · Tables: placement on the page · Page setup and document structure · Objects and drawings · Fields, footnotes, and references.

Types on this page — 33

InterfaceDeclaration · api-edit.ts

interface D37TableColumnAutofitRequest {
bodyBlockIndex: number;
columnIndex: number;
reopenAfterWrite?: boolean;
outputPath?: string | null;
}

InterfaceDeclaration · api-edit.ts

interface D37TableColumnAutofitResult {
schema: "fastdoc.shell.d37-table-column-autofit.v1";
operationKind: "autofit-table-column-to-content";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
bodyBlockIndex: number;
columnIndex: number;
resultKind: string | null;
writebackResultKind: string | null;
tableDimensionTwips: number | null;
rowCount: number | null;
columnCount: number | null;
snapshot: unknown;
}

TypeAliasDeclaration · api-edit.ts

type D37TableSelectionColumnAutofitStrategy = "widest-content-column";

InterfaceDeclaration · api-edit.ts

interface D37TableSelectionColumnAutofitRange {
bodyBlockIndex: number;
rowIndex: number;
columnIndex: number;
rowCount: number;
columnCount: number;
}

InterfaceDeclaration · api-edit.ts

interface D37TableSelectionColumnAutofitRequest {
selection: D37TableSelectionColumnAutofitRange;
strategy: D37TableSelectionColumnAutofitStrategy;
reopenAfterWrite?: boolean;
outputPath?: string | null;
}

InterfaceDeclaration · api-edit.ts

interface D37TableSelectionColumnAutofitResult {
schema: "fastdoc.shell.d37-table-selection-column-autofit.v1";
strategy: D37TableSelectionColumnAutofitStrategy;
selection: D37TableSelectionColumnAutofitRange;
computedColumnIndex: number;
computedColumnTextLength: number;
columnTextLengths: number[];
columnAutofitResult: D37TableColumnAutofitResult;
}

D37TableSelectionColumnAutofitCommandState

Section titled “D37TableSelectionColumnAutofitCommandState”

InterfaceDeclaration · api-edit.ts

interface D37TableSelectionColumnAutofitCommandState {
schema: "fastdoc.shell.d37-table-selection-column-autofit-command-state.v1";
operationKind: "autofit-table-column-to-content";
strategy: D37TableSelectionColumnAutofitStrategy;
canApply: boolean;
disabledReason: string | null;
documentPath: string | null;
selection: D37TableSelectionColumnAutofitRange;
computedColumnIndex: number | null;
computedColumnTextLength: number | null;
columnTextLengths: number[];
resultKind: string | null;
writebackResultKind: string | null;
tableDimensionTwips: number | null;
rowCount: number | null;
columnCount: number | null;
supportMarkerKinds: string[];
snapshot: unknown;
}

InterfaceDeclaration · api-edit.ts

interface D37TableCellSpacingRequest {
bodyBlockIndex: number;
spacingTwips: number;
reopenAfterWrite?: boolean;
outputPath?: string | null;
}

InterfaceDeclaration · api-edit.ts

interface D37TableCellSpacingResult {
schema: "fastdoc.shell.d37-table-cell-spacing.v1";
operationKind: "set-table-cell-spacing";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
bodyBlockIndex: number;
resultKind: string | null;
writebackResultKind: string | null;
spacingTwips: number | null;
rowCount: number | null;
columnCount: number | null;
snapshot: unknown;
}

InterfaceDeclaration · api-edit.ts

interface D37TableCellSpacingCommandState {
schema: "fastdoc.shell.d37-table-cell-spacing-command-state.v1";
operationKind: "set-table-cell-spacing";
canApply: boolean;
disabledReason: string | null;
documentPath: string | null;
bodyBlockIndex: number;
resultKind: string | null;
writebackResultKind: string | null;
spacingTwips: number | null;
rowCount: number | null;
columnCount: number | null;
supportMarkerKinds: string[];
snapshot: unknown;
}

TypeAliasDeclaration · api-edit.ts

type D37TableWrappingStyleMode = "inline" | "floating";

InterfaceDeclaration · api-edit.ts

interface D37TableWrappingStyleRequest {
bodyBlockIndex: number;
wrappingStyle: D37TableWrappingStyleMode;
reopenAfterWrite?: boolean;
outputPath?: string | null;
}

InterfaceDeclaration · api-edit.ts

interface D37TableWrappingStyleResult {
schema: "fastdoc.shell.d37-table-wrapping-style.v1";
operationKind: "set-table-wrapping-inline" | "set-table-wrapping-floating";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
bodyBlockIndex: number;
wrappingStyle: D37TableWrappingStyleMode;
resultKind: string | null;
writebackResultKind: string | null;
tableWrappingStyle: string | null;
rowCount: number | null;
columnCount: number | null;
snapshot: unknown;
}

InterfaceDeclaration · api-edit.ts

interface D37TableWrappingStyleCommandState {
schema: "fastdoc.shell.d37-table-wrapping-style-command-state.v1";
operationKind: "set-table-wrapping-inline" | "set-table-wrapping-floating";
canApply: boolean;
disabledReason: string | null;
documentPath: string | null;
bodyBlockIndex: number;
wrappingStyle: D37TableWrappingStyleMode;
resultKind: string | null;
writebackResultKind: string | null;
tableWrappingStyle: string | null;
rowCount: number | null;
columnCount: number | null;
supportMarkerKinds: string[];
snapshot: unknown;
}

InterfaceDeclaration · api-edit.ts

interface D37TableFloatingPositionRequest {
bodyBlockIndex: number;
leftFromTextTwips: number;
rightFromTextTwips: number;
topFromTextTwips: number;
bottomFromTextTwips: number;
positionXTwips: number;
positionYTwips: number;
reopenAfterWrite?: boolean;
outputPath?: string | null;
}

InterfaceDeclaration · api-edit.ts

interface D37TableFloatingPositionResult {
schema: "fastdoc.shell.d37-table-floating-position.v1";
operationKind: "set-table-floating-position";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
bodyBlockIndex: number;
leftFromTextTwips: number;
rightFromTextTwips: number;
topFromTextTwips: number;
bottomFromTextTwips: number;
positionXTwips: number;
positionYTwips: number;
resultKind: string | null;
writebackResultKind: string | null;
tableWrappingStyle: string | null;
tableFloatingLeftFromTextTwips: number | null;
tableFloatingRightFromTextTwips: number | null;
tableFloatingTopFromTextTwips: number | null;
tableFloatingBottomFromTextTwips: number | null;
tableFloatingPositionXTwips: number | null;
tableFloatingPositionYTwips: number | null;
rowCount: number | null;
columnCount: number | null;
snapshot: unknown;
}

InterfaceDeclaration · api-edit.ts

interface D37TableFloatingPositionCommandState {
schema: "fastdoc.shell.d37-table-floating-position-command-state.v1";
operationKind: "set-table-floating-position";
canApply: boolean;
disabledReason: string | null;
documentPath: string | null;
bodyBlockIndex: number;
leftFromTextTwips: number;
rightFromTextTwips: number;
topFromTextTwips: number;
bottomFromTextTwips: number;
positionXTwips: number;
positionYTwips: number;
resultKind: string | null;
writebackResultKind: string | null;
tableWrappingStyle: string | null;
tableFloatingLeftFromTextTwips: number | null;
tableFloatingRightFromTextTwips: number | null;
tableFloatingTopFromTextTwips: number | null;
tableFloatingBottomFromTextTwips: number | null;
tableFloatingPositionXTwips: number | null;
tableFloatingPositionYTwips: number | null;
rowCount: number | null;
columnCount: number | null;
supportMarkerKinds: string[];
snapshot: unknown;
}

TypeAliasDeclaration · api-edit.ts

type D37TableAutofitToWindowAction = "fit-selected-table-to-window";

InterfaceDeclaration · api-edit.ts

interface D37TableAutofitToWindowRequest {
selection: D37TableSelectionWidthFitRange;
action: D37TableAutofitToWindowAction;
reopenAfterWrite?: boolean;
outputPath?: string | null;
}

InterfaceDeclaration · api-edit.ts

interface D37TableAutofitToWindowResult {
schema: "fastdoc.shell.d37-table-autofit-to-window.v1";
action: D37TableAutofitToWindowAction;
selection: D37TableSelectionWidthFitRange;
computedWidthMode: "fit-window";
tableWidthResult: D37TableWidthResult;
}

InterfaceDeclaration · api-edit.ts

interface D37TableAutofitToWindowCommandState {
schema: "fastdoc.shell.d37-table-autofit-to-window-command-state.v1";
operationKind: "fit-table-width-to-window";
action: D37TableAutofitToWindowAction;
canApply: boolean;
disabledReason: string | null;
documentPath: string | null;
selection: D37TableSelectionWidthFitRange;
computedWidthMode: "fit-window";
resultKind: string | null;
writebackResultKind: string | null;
tableWidthUnit: string | null;
tableWidthValue: number | null;
tableWidthTwips: number | null;
computedTableWidthToContentsTwips: number | null;
tableWidthPercentX50: number | null;
tableDimensionTwips: number | null;
rowCount: number | null;
columnCount: number | null;
supportMarkerKinds: string[];
snapshot: unknown;
}

TypeAliasDeclaration · api-edit.ts

type D37TableFixedColumnWidthAction = "fixed-selected-table-column-width";

InterfaceDeclaration · api-edit.ts

interface D37TableFixedColumnWidthRequest {
selection: D37TableSelectionWidthFitRange;
action: D37TableFixedColumnWidthAction;
reopenAfterWrite?: boolean;
outputPath?: string | null;
}

InterfaceDeclaration · api-edit.ts

interface D37TableFixedColumnWidthResult {
schema: "fastdoc.shell.d37-table-fixed-column-width.v1";
action: D37TableFixedColumnWidthAction;
selection: D37TableSelectionWidthFitRange;
computedWidthMode: "fixed-column-width";
tableWidthResult: D37TableWidthResult;
}

InterfaceDeclaration · api-edit.ts

interface D37TableFixedColumnWidthCommandState {
schema: "fastdoc.shell.d37-table-fixed-column-width-command-state.v1";
operationKind: "fixed-table-column-width";
action: D37TableFixedColumnWidthAction;
canApply: boolean;
disabledReason: string | null;
documentPath: string | null;
selection: D37TableSelectionWidthFitRange;
computedWidthMode: "fixed-column-width";
resultKind: string | null;
writebackResultKind: string | null;
tableWidthUnit: string | null;
tableWidthValue: number | null;
tableWidthTwips: number | null;
computedTableWidthToContentsTwips: number | null;
tableWidthPercentX50: number | null;
tableDimensionTwips: number | null;
rowCount: number | null;
columnCount: number | null;
supportMarkerKinds: string[];
snapshot: unknown;
}

TypeAliasDeclaration · api-edit.ts

type D37TableCellMarginsMode = "cell" | "range" | "default-from-cell";

InterfaceDeclaration · api-edit.ts

interface D37TableCellMarginsRequest {
bodyBlockIndex: number;
rowIndex: number;
columnIndex: number;
rowCount?: number | null;
columnCount?: number | null;
topTwips?: number | null;
rightTwips?: number | null;
bottomTwips?: number | null;
leftTwips?: number | null;
applyMode?: D37TableCellMarginsMode | null;
reopenAfterWrite?: boolean;
outputPath?: string | null;
}

InterfaceDeclaration · api-edit.ts

interface D37TableCellMarginsResult {
schema: "fastdoc.shell.d37-table-cell-margins.v1";
operationKind: "set-table-cell-margins" | "set-table-cell-margins-range" | "set-table-default-cell-margins-from-cell";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
bodyBlockIndex: number;
rowIndex: number;
columnIndex: number;
rowCount: number | null;
columnCount: number | null;
resultKind: string | null;
writebackResultKind: string | null;
topTwips: number | null;
rightTwips: number | null;
bottomTwips: number | null;
leftTwips: number | null;
spanCount: number | null;
snapshot: unknown;
}

InterfaceDeclaration · api-edit.ts

interface D37TableCellMarginsCommandState {
schema: "fastdoc.shell.d37-table-cell-margins-command-state.v1";
operationKind: D37TableCellMarginsResult["operationKind"];
canApply: boolean;
disabledReason: string | null;
documentPath: string | null;
bodyBlockIndex: number;
rowIndex: number;
columnIndex: number;
rowCount: number | null;
columnCount: number | null;
applyMode: D37TableCellMarginsMode;
resultKind: string | null;
writebackResultKind: string | null;
topTwips: number | null;
rightTwips: number | null;
bottomTwips: number | null;
leftTwips: number | null;
spanCount: number | null;
supportMarkerKinds: string[];
snapshot: unknown;
}

TypeAliasDeclaration · api-edit.ts

type D37TableCellTextWrappingMode = "cell" | "range";

InterfaceDeclaration · api-edit.ts

interface D37TableCellTextWrappingRequest {
bodyBlockIndex: number;
rowIndex: number;
columnIndex: number;
rowCount?: number | null;
columnCount?: number | null;
wrapText: boolean;
applyMode?: D37TableCellTextWrappingMode | null;
reopenAfterWrite?: boolean;
outputPath?: string | null;
}

InterfaceDeclaration · api-edit.ts

interface D37TableCellTextWrappingResult {
schema: "fastdoc.shell.d37-table-cell-text-wrapping.v1";
operationKind: "set-table-cell-text-wrapping" | "set-table-cell-text-wrapping-range";
applied: boolean;
documentPath: string | null;
outputPath: string | null;
bodyBlockIndex: number;
rowIndex: number;
columnIndex: number;
rowCount: number | null;
columnCount: number | null;
resultKind: string | null;
writebackResultKind: string | null;
wrapText: boolean | null;
spanCount: number | null;
snapshot: unknown;
}

InterfaceDeclaration · api-edit.ts

interface D37TableCellTextWrappingCommandState {
schema: "fastdoc.shell.d37-table-cell-text-wrapping-command-state.v1";
operationKind: D37TableCellTextWrappingResult["operationKind"];
canApply: boolean;
disabledReason: string | null;
documentPath: string | null;
bodyBlockIndex: number;
rowIndex: number;
columnIndex: number;
rowCount: number | null;
columnCount: number | null;
applyMode: D37TableCellTextWrappingMode;
resultKind: string | null;
writebackResultKind: string | null;
wrapText: boolean | null;
spanCount: number | null;
supportMarkerKinds: string[];
snapshot: unknown;
}

Documentation assistant

Answers are assembled from the documentation and may be inaccurate — check the sources.