# Format operations

> Canonical formatting mutation with directive semantics ('on', 'off', 'clear').



45 operations. Names, descriptions, and behavior flags come from the canonical contract.

## Operations

- [`formatRange`](/document-api/reference/format/format-range) (mutates, tracked): Legacy root-level alias for inline range formatting. Routes to `format.apply` for compatibility with older callers.
- [`format.apply`](/document-api/reference/format/apply) (mutates, tracked): Apply inline run-property patch changes to the target range with explicit set/clear semantics.
- [`format.bold`](/document-api/reference/format/bold) (mutates, tracked): Set or clear the `bold` inline run property on the target text range.
- [`format.italic`](/document-api/reference/format/italic) (mutates, tracked): Set or clear the `italic` inline run property on the target text range.
- [`format.strike`](/document-api/reference/format/strike) (mutates, tracked): Set or clear the `strike` inline run property on the target text range.
- [`format.underline`](/document-api/reference/format/underline) (mutates, tracked): Set or clear the `underline` inline run property on the target text range.
- [`format.highlight`](/document-api/reference/format/highlight) (mutates, tracked): Set or clear the `highlight` inline run property on the target text range.
- [`format.color`](/document-api/reference/format/color) (mutates, tracked): Set or clear the `color` inline run property on the target text range.
- [`format.fontSize`](/document-api/reference/format/font-size) (mutates, tracked): Set or clear the `fontSize` inline run property on the target text range.
- [`format.fontFamily`](/document-api/reference/format/font-family) (mutates, tracked): Set or clear the `fontFamily` inline run property on the target text range.
- [`format.letterSpacing`](/document-api/reference/format/letter-spacing) (mutates, tracked): Set or clear the `letterSpacing` inline run property on the target text range.
- [`format.vertAlign`](/document-api/reference/format/vert-align) (mutates, tracked): Set or clear the `vertAlign` inline run property on the target text range.
- [`format.position`](/document-api/reference/format/position) (mutates, tracked): Set or clear the `position` inline run property on the target text range.
- [`format.dstrike`](/document-api/reference/format/dstrike) (mutates): Set or clear the `dstrike` inline run property on the target text range.
- [`format.smallCaps`](/document-api/reference/format/small-caps) (mutates): Set or clear the `smallCaps` inline run property on the target text range.
- [`format.caps`](/document-api/reference/format/caps) (mutates, tracked): Set or clear the `caps` inline run property on the target text range.
- [`format.shading`](/document-api/reference/format/shading) (mutates): Set or clear the `shading` inline run property on the target text range.
- [`format.border`](/document-api/reference/format/border) (mutates): Set or clear the `border` inline run property on the target text range.
- [`format.outline`](/document-api/reference/format/outline) (mutates): Set or clear the `outline` inline run property on the target text range.
- [`format.shadow`](/document-api/reference/format/shadow) (mutates): Set or clear the `shadow` inline run property on the target text range.
- [`format.emboss`](/document-api/reference/format/emboss) (mutates): Set or clear the `emboss` inline run property on the target text range.
- [`format.imprint`](/document-api/reference/format/imprint) (mutates): Set or clear the `imprint` inline run property on the target text range.
- [`format.charScale`](/document-api/reference/format/char-scale) (mutates): Set or clear the `charScale` inline run property on the target text range.
- [`format.kerning`](/document-api/reference/format/kerning) (mutates): Set or clear the `kerning` inline run property on the target text range.
- [`format.vanish`](/document-api/reference/format/vanish) (mutates): Set or clear the `vanish` inline run property on the target text range.
- [`format.webHidden`](/document-api/reference/format/web-hidden) (mutates): Set or clear the `webHidden` inline run property on the target text range.
- [`format.specVanish`](/document-api/reference/format/spec-vanish) (mutates): Set or clear the `specVanish` inline run property on the target text range.
- [`format.rtl`](/document-api/reference/format/rtl) (mutates): Set or clear the `rtl` inline run property on the target text range. This does not change paragraph direction; use `format.paragraph.setDirection` for paragraph-level RTL.
- [`format.cs`](/document-api/reference/format/cs) (mutates): Set or clear the `cs` inline run property on the target text range.
- [`format.bCs`](/document-api/reference/format/b-cs) (mutates): Set or clear the `bCs` inline run property on the target text range.
- [`format.iCs`](/document-api/reference/format/i-cs) (mutates): Set or clear the `iCs` inline run property on the target text range.
- [`format.eastAsianLayout`](/document-api/reference/format/east-asian-layout) (mutates): Set or clear the `eastAsianLayout` inline run property on the target text range.
- [`format.em`](/document-api/reference/format/em) (mutates): Set or clear the `em` inline run property on the target text range.
- [`format.fitText`](/document-api/reference/format/fit-text) (mutates): Set or clear the `fitText` inline run property on the target text range.
- [`format.snapToGrid`](/document-api/reference/format/snap-to-grid) (mutates): Set or clear the `snapToGrid` inline run property on the target text range.
- [`format.lang`](/document-api/reference/format/lang) (mutates): Set or clear the `lang` inline run property on the target text range.
- [`format.oMath`](/document-api/reference/format/o-math) (mutates): Set or clear the `oMath` inline run property on the target text range.
- [`format.rStyle`](/document-api/reference/format/r-style) (mutates): Set or clear the `rStyle` inline run property on the target text range.
- [`format.rFonts`](/document-api/reference/format/r-fonts) (mutates): Set or clear the `rFonts` inline run property on the target text range.
- [`format.fontSizeCs`](/document-api/reference/format/font-size-cs) (mutates): Set or clear the `fontSizeCs` inline run property on the target text range.
- [`format.ligatures`](/document-api/reference/format/ligatures) (mutates): Set or clear the `ligatures` inline run property on the target text range.
- [`format.numForm`](/document-api/reference/format/num-form) (mutates): Set or clear the `numForm` inline run property on the target text range.
- [`format.numSpacing`](/document-api/reference/format/num-spacing) (mutates): Set or clear the `numSpacing` inline run property on the target text range.
- [`format.stylisticSets`](/document-api/reference/format/stylistic-sets) (mutates): Set or clear the `stylisticSets` inline run property on the target text range.
- [`format.contextualAlternates`](/document-api/reference/format/contextual-alternates) (mutates): Set or clear the `contextualAlternates` inline run property on the target text range.

