ImageGear for .NET
Paragraph

Paragraph is the most basic unit of block-level content within a WordprocessingML document. It defines a distinct division of content with a WordprocessingML document which begins on a new line. Below is the table of Paragraph’s features, supported by ImageGear:

Feature

Description

Comment

Borders

This element specifies a set of borders around the paragraph.

ImageGear supports almost all Open XML border styles, except the following:

  • Art borders
  • Borders that require 3 parallel lines or 3D rendering

Indentation

This element specifies a set of indentation properties applied to the current paragraph.

Fully supported.

Horizontal text alignment

This element specifies the paragraph alignment which shall be applied to text in this paragraph.

Supported alignments are:

  • Left
  • Center
  • Right
  • Justify

Vertical text alignment

This element specifies the vertical alignment of all text on each line displayed within a paragraph. If the line
height (before any added spacing) is larger than one or more characters on the line, all characters are aligned to
each other as specified by this element.

Supported alignments are:

  • Top
  • Center
  • Bottom
  • Baseline

Shading

This element specifies the shading applied to the contents of the paragraph.
This shading consists of three components:

  • Background Color
  • (optional) Pattern
  • (optional) Pattern Color

The resulting shading is applied by setting the background color behind the paragraph, then applying the pattern color using the mask supplied by the pattern over that background.

If Pattern of the shading is specified, ImageGear supports only clear and solid types of the Pattern, i.e. no any percentage or style (stripe, cross, diagonal…) in the pattern.

Text flow direction

This element specifies the direction of the text flow for this paragraph.

ImageGear supports only left-to-right and right-to-left directions. But WordprocessingML allows also setting e.g. bottom-to-top flow.
NOTE: for example, rotated text (e.g. vertical one) is not supported.

Spacing between lines and paragraphs

This element specifies the inter-line and inter-paragraph spacing which shall be applied to the contents of this
Paragraph when it is displayed by a consumer.

Fully supported, if explicit spacing before/after paragraph is specified. Otherwise, if that parameter is “Auto”, which according to ECMA specification:

Specifies whether a consumer shall automatically determine the spacing before/after this
paragraph based on its contents.
This automatic spacing shall match the spacing which would be applied to the paragraph
in an HTML document where no explicit spacing before/after is specified.

In such case ImageGear will try to set appropriate spacing between paragraphs, but in some cases displayed text can slightly differ from some other WordprocessingML viewers (e.g. Microsoft Word).

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback