API 참조

ITextRun

이 API 페이지의 본문은 현재 영어로 제공됩니다. 코드 시그니처와 식별자는 언어에 따라 바뀌지 않습니다.

A text formatting run within an IDocumentBody. It associates a text interval1 with an ITextStyle.

Import

TypeScript
import type { ITextRun } from '@univerjs/core'

Definition

TypeScript
interface ITextRun {  st: number  ed: number  sId?: string  ts?: ITextStyle}

Fields

st

Required · number

Inclusive character index of the first styled character.

ed

Required · number

Exclusive character boundary after the last styled character.

sId

Optional · string | undefined

ts

Optional · ITextStyle | undefined

Package: @univerjs/core · Type definitions

Footnotes

  1. Text offsets use JavaScript UTF-16 code units, not visible character counts. For example, "😀".length is 2. A text run covers [st, ed): st is included and ed is excluded; do not reuse the inclusive end indices of sheet ranges. ↩

이 가이드는 어떠셨나요?

© 2026 DreamNum Co., Ltd.