Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeTextTabStops

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Modifiers sealed

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

Inheritance

  • Object
  • OfficeTextTabStops

Usage

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

Accepted by parameters

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} requiredposition: 0
At most 256 explicit stops; the collection is copied.
defaultInterval System.Double = 36 optionalposition: 1
Positive distance between default stops.
origin System.Double = 0 optionalposition: 2
Tab origin relative to the paragraph's inner left margin. May be negative.

Methods

public OfficeTextTabStops WithParagraphAlignment(Boolean align = true) #
Returns: OfficeTextTabStops

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

Parameters

align System.Boolean = true optionalposition: 0
True applies paragraph center or right alignment to the entire tabbed line; false keeps the fixed tab grid.

Returns

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 Boolean AlignWithParagraph { get; } #

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