API Reference
Class
OfficeTextTabStops
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.
Returned or exposed by
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}
- At most 256 explicit stops; the collection is copied.
- defaultInterval System.Double = 36
- Positive distance between default stops.
- origin System.Double = 0
- Tab origin relative to the paragraph's inner left margin. May be negative.
Methods
public OfficeTextTabStops WithParagraphAlignment(Boolean align = true) #Returns:
OfficeTextTabStopsReturns independent settings that opt tabbed lines into or out of paragraph alignment.
Parameters
- align System.Boolean = true
- 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.
Inherited Methods
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.