Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeTextTabStops

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
1f76172c94d1 with working tree changes
Modifiers
sealed

Immutable paragraph tab settings shared by SVG, raster and PDF layout.

Inheritance

  • object
  • OfficeTextTabStops

Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 1

Constructors

public OfficeTextTabStops(IReadOnlyList<OfficeTextTabStop> stops, double defaultInterval = 36, double origin = 0) #

Creates sorted, unique stops with a repeating default interval after the last explicit stop.

Parameters

stops System.Collections.Generic.IReadOnlyList<OfficeIMO.Drawing.OfficeTextTabStop> required
At most 256 explicit stops; the collection is copied.
defaultInterval double = 36 optional
Positive distance between default stops.
origin double = 0 optional
Tab origin relative to the paragraph's inner left margin. May be negative.

Methods

public OfficeTextTabStops WithParagraphAlignment(bool align = true) #

Returns independent settings that opt tabbed lines into or out of paragraph alignment.

Parameters

align bool = true optional
True applies paragraph center or right alignment to the entire tabbed line; false keeps the fixed tab grid.

Returns

OfficeTextTabStops A snapshot with the same stops, default interval and origin.

Properties

public IReadOnlyList<OfficeTextTabStop> Stops { get; } #

Sorted snapshot of explicit stops.

public double DefaultInterval { get; } #

Distance between repeating default stops.

public double Origin { get; } #

Origin relative to the paragraph's inner left margin.

public bool AlignWithParagraph { get; } #

Whether tabbed lines follow the paragraph's center or right alignment. False keeps the fixed tab grid.