# FileOperationStartingEvent Interface

> FileOperationStartingEvent interface in the TX Sheet Control TypeScript API for the browser: Synchronous preflight notification.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > FileOperationStartingEvent Interface
- **478 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fileoperationstartingevent/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fileoperationstartingevent/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fileoperationstartingevent/llms-full.txt

---

Synchronous preflight notification. Set cancel to stop before parsing or capturing the export snapshot.

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

Type-only declaration; it is not a JavaScript runtime constructor.

### Members

#### Properties

| Property | Description |
|---|---|
| [byteLength](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fileoperationstartingevent/bytelength-property/llms-full.txt) | Input or output byte count, when known. |
| [cancel](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fileoperationstartingevent/cancel-property/llms-full.txt) | The cancel value of FileOperationStartingEvent. |
| [operation](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fileoperationstartingevent/operation-property/llms-full.txt) | The operation value of FileOperationStartingEvent. |
| [operationId](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fileoperationstartingevent/operationid-property/llms-full.txt) | The operationId value of FileOperationStartingEvent. |
| [streamType](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fileoperationstartingevent/streamtype-property/llms-full.txt) | The streamType value of FileOperationStartingEvent. |

### Examples

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

```typescript
import type { FileOperationStartingEvent } from '@txtextcontrol/tx-sheet-control';

function inspectFileOperationStartingEventCancel(fileOperationStartingEvent: FileOperationStartingEvent) {
    const value = fileOperationStartingEvent['cancel'];
    console.log('FileOperationStartingEvent.cancel', value);
}
```

### See Also

- [TypeScript Browser Editor API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/llms-full.txt)
- [Events and Cancellation](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/events/llms-full.txt)

---

## In This Section

- [FileOperationStartingEvent.byteLength Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fileoperationstartingevent/bytelength-property/llms-full.txt): FileOperationStartingEvent.byteLength property in the TX Sheet Control TypeScript API for the browser: Input or output byte count, when known.
- [FileOperationStartingEvent.cancel Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fileoperationstartingevent/cancel-property/llms-full.txt): FileOperationStartingEvent.cancel property in the TX Sheet Control TypeScript API for the browser, with its type boolean and a TypeScript example.
- [FileOperationStartingEvent.operation Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fileoperationstartingevent/operation-property/llms-full.txt): FileOperationStartingEvent.operation property in the TX Sheet Control TypeScript API for the browser, with its type "load" | "save" and a TypeScript example.
- [FileOperationStartingEvent.operationId Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fileoperationstartingevent/operationid-property/llms-full.txt): FileOperationStartingEvent.operationId property in the TX Sheet Control TypeScript API for the browser, with its type string and a TypeScript example.
- [FileOperationStartingEvent.streamType Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fileoperationstartingevent/streamtype-property/llms-full.txt): FileOperationStartingEvent.streamType property in the TX Sheet Control TypeScript API for the browser, with its type StreamType and a TypeScript example.

---

## Nearby

- **Previous:** [FileOperationFailedEvent.streamType Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fileoperationfailedevent/streamtype-property/llms-full.txt)
- **Next:** [FileOperationStartingEvent.byteLength Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fileoperationstartingevent/bytelength-property/llms-full.txt)
