Table of Contents

Class TextFormatting

Namespace
ReportWright.Design
Assembly
ReportWright.Design.dll

The formatting toolbar's edits on whole textboxes, where the engine reads them. From RDL 2008 the font, colour, decoration and number format live on every text run (a run's own style wins over the textbox's, and Format is read from the run only) and the horizontal alignment on every paragraph; in RDL 2005 all of them live on the textbox. One call is one undo entry, however many textboxes and runs it touches.

public sealed class TextFormatting
Inheritance
TextFormatting
Inherited Members

Constructors

TextFormatting(DesignerDocument)

Initializes the editor over a document.

Fields

BoxProperties

The textbox-level properties, in every schema version: BackgroundColor, VerticalAlign.

FormatPresets

The number formats the toolbar offers, by label: a .NET format string each, as Report Builder's presets write them.

RunProperties

The run-level properties: FontFamily, FontSize, FontWeight, FontStyle, TextDecoration, Color, Format.

Methods

IsOn(RdlElement, string)

Whether bold, italic or underline is on for a textbox.

Read(RdlElement, string)

A textbox's value of a text property: its first run's (or the textbox's, in RDL 2005 or when the run states none), or its first paragraph's for TextAlign.

Set(IEnumerable<RdlElement>, string, string?)

Sets (or, with null, removes) a text property on textboxes, as one undo entry.

Toggle(IReadOnlyList<RdlElement>, string)

Flips bold, italic or underline: on when the first textbox is off, off otherwise, as one undo entry.