New to Telerik Document ProcessingStart a free 30-day trial

Block-level container for inline content with paragraph-specific formatting including alignment, spacing, indentation, borders, and list association.

Definition

Namespace:Telerik.Windows.Documents.Flow.Model

Assembly:Telerik.Windows.Documents.Flow.dll

Syntax:

C#
public sealed class Paragraph : BlockBase, IElementWithStyle, IElementWithProperties

Inheritance: objectDocumentElementBaseBlockBaseParagraph

Implements: IElementWithPropertiesIElementWithStyle

Inherited Members BlockBase.BlockContainerDocumentElementBase.EnumerateChildrenOfType<T>()DocumentElementBase.DocumentDocumentElementBase.Parent

Constructors

Initializes a new instance of the Paragraph class.

C#
public Paragraph(RadFlowDocument document)
Parameters:documentRadFlowDocument

The document in which the element will be added.

Fields

Defines whether punctuation characters can extend beyond paragraph margins for visual alignment.

C#
public static readonly StylePropertyDefinition<bool?> AllowOverflowPunctuationPropertyDefinition

Defines whether East Asian typography line breaking rules are applied to control line wrapping for CJK text.

C#
public static readonly StylePropertyDefinition<bool?> ApplyEastAsianLineBreakingRulesPropertyDefinition

Defines whether automatic spacing after paragraphs is applied based on document rendering context.

C#
public static readonly StylePropertyDefinition<bool?> AutomaticSpacingAfterPropertyDefinition

Defines whether automatic spacing before paragraphs is applied based on document rendering context.

C#
public static readonly StylePropertyDefinition<bool?> AutomaticSpacingBeforePropertyDefinition

Defines the background fill color property for paragraph shading.

C#
public static readonly StylePropertyDefinition<ThemableColor> BackgroundColorPropertyDefinition

Defines the border configuration property for paragraphs, controlling line style, color, and thickness on all sides.

C#
public static readonly StylePropertyDefinition<ParagraphBorders> BordersPropertyDefinition

Defines whether spacing before and after is suppressed when adjacent paragraphs share the same style.

C#
public static readonly StylePropertyDefinition<bool?> ContextualSpacingPropertyDefinition

Defines the positive indentation applied to the first line of paragraphs, measured in device-independent pixels.

C#
public static readonly StylePropertyDefinition<double?> FirstLineIndentPropertyDefinition

Defines the text flow direction property, determining left-to-right or right-to-left content rendering.

C#
public static readonly StylePropertyDefinition<FlowDirection?> FlowDirectionPropertyDefinition

Defines the negative first-line indentation (hanging indent) applied to paragraphs, measured in device-independent pixels.

C#
public static readonly StylePropertyDefinition<double?> HangingIndentPropertyDefinition

Defines whether paragraphs should avoid being split across page breaks.

C#
public static readonly StylePropertyDefinition<bool?> KeepOnOnePagePropertyDefinition

Defines whether paragraphs should remain on the same page as the following paragraph to prevent separation.

C#
public static readonly StylePropertyDefinition<bool?> KeepWithNextParagraphPropertyDefinition

Defines the left margin indentation for paragraphs, measured in device-independent pixels.

C#
public static readonly StylePropertyDefinition<double?> LeftIndentPropertyDefinition

Defines the line spacing value property, interpreted based on the line spacing type setting.

C#
public static readonly StylePropertyDefinition<double?> LineSpacingPropertyDefinition

Defines how the line spacing value is interpreted (exact, at least, or multiple of line height).

C#
public static readonly StylePropertyDefinition<HeightType?> LineSpacingTypePropertyDefinition

Defines the list identifier property that associates paragraphs with a specific list definition.

C#
public static readonly StylePropertyDefinition<int?> ListIdPropertyDefinition

Defines the list level property (0-8) that determines indentation and numbering format within a list.

C#
public static readonly StylePropertyDefinition<int?> ListLevelPropertyDefinition

Defines whether left and right indents are swapped on odd pages to support facing-page layouts.

C#
public static readonly StylePropertyDefinition<bool?> MirrorIndentsPropertyDefinition

Defines the outline level property that determines paragraph hierarchy in table of contents and document structure.

C#
public static readonly StylePropertyDefinition<OutlineLevel?> OutlineLevelPropertyDefinition

Defines whether a page break is inserted before paragraphs, forcing them to start on a new page.

C#
public static readonly StylePropertyDefinition<bool?> PageBreakBeforePropertyDefinition

Defines the right margin indentation for paragraphs, measured in device-independent pixels.

C#
public static readonly StylePropertyDefinition<double?> RightIndentPropertyDefinition

Defines the foreground pattern color property for paragraph shading when a pattern is applied.

C#
public static readonly StylePropertyDefinition<ThemableColor> ShadingPatternColorPropertyDefinition

Defines the fill pattern style property for paragraph shading (e.g., solid, diagonal stripes, dots).

C#
public static readonly StylePropertyDefinition<ShadingPattern?> ShadingPatternPropertyDefinition

Defines the spacing after paragraph property, measured in device-independent pixels.

C#
public static readonly StylePropertyDefinition<double?> SpacingAfterPropertyDefinition

Defines the spacing before paragraph property, measured in device-independent pixels.

C#
public static readonly StylePropertyDefinition<double?> SpacingBeforePropertyDefinition

Defines the collection of custom tab stop positions and alignments for paragraphs.

C#
public static readonly StylePropertyDefinition<TabStopCollection> TabStopsPropertyDefinition

Defines the horizontal text alignment property for paragraphs.

C#
public static readonly StylePropertyDefinition<Alignment?> TextAlignmentPropertyDefinition

Methods

Creates a deep copy of this paragraph with all inlines and formatting, associated to the current document.

C#
public Paragraph Clone()
Returns:

Paragraph

The cloned element.

Creates a deep copy of this paragraph with all inlines and formatting, associated to the specified document.

C#
public Paragraph Clone(RadFlowDocument document)
Parameters:documentRadFlowDocument

The document to which the cloned element should be associated.

Returns:

Paragraph

The cloned element.

Properties

Gets or sets whether punctuation characters can extend beyond paragraph margins for visual alignment; defaults to true.

C#
public bool AllowOverflowPunctuation { get; set; }
Property Value:

The default is true.

Gets or sets whether East Asian typography line breaking rules are applied to control line wrapping behavior for CJK text; defaults to true.

C#
public bool ApplyEastAsianLineBreakingRules { get; set; }
Property Value:

The default value is true.

Gets or sets the border configuration for all sides of the paragraph, controlling line style, color, and thickness.

C#
public ParagraphBorders Borders { get; set; }
Property Value:

The borders.

Gets or sets whether spacing before and after is suppressed when adjacent paragraphs share the same paragraph style; defaults to false.

C#
public bool ContextualSpacing { get; set; }
Property Value:

The default value is false.

Gets or sets the text flow direction for the paragraph, determining whether content flows left-to-right or right-to-left; defaults to LeftToRight.

C#
public FlowDirection FlowDirection { get; set; }
Property Value:

The default value is LeftToRight

Gets the indentation settings for this paragraph, controlling left, right, first-line, and hanging indents.

C#
public ParagraphIndentation Indentation { get; }
Property Value:

The indentation.

Gets the collection of inline elements (runs, images, fields) contained within this paragraph.

C#
public InlineCollection Inlines { get; }
Property Value:

The inlines.

Gets or sets whether the paragraph should not be split across page breaks in page view mode; defaults to false.

C#
public bool KeepOnOnePage { get; set; }
Property Value:

The default value is false

Gets or sets whether this paragraph should remain on the same page as the following paragraph to prevent separation by page breaks; defaults to false.

C#
public bool KeepWithNextParagraph { get; set; }
Property Value:

The default value is false

Gets or sets the identifier of the list definition this paragraph belongs to, enabling list formatting.

C#
public int ListId { get; set; }
Property Value:

The list id.

Gets or sets the list level (0-8) that determines indentation and numbering format within the associated list; defaults to -1 (no list).

C#
public int ListLevel { get; set; }
Property Value:

The default value is -1 - list style is not referenced.

Gets or sets whether left and right indents are swapped on odd pages to support mirrored margins in facing-page layouts; defaults to false.

C#
public bool MirrorIndents { get; set; }
Property Value:

The default value is false.

Gets or sets the outline level that determines this paragraph's hierarchy in table of contents and document structure; defaults to Level9 (no outline level).

C#
public OutlineLevel OutlineLevel { get; set; }
Property Value:

The default value is Level9 - no level.

Gets or sets whether a page break is inserted before this paragraph in page view mode, forcing the paragraph to start on a new page; defaults to false.

C#
public bool PageBreakBefore { get; set; }
Property Value:

The default value is false

Gets the formatting properties container for this paragraph, providing access to alignment, spacing, indentation, borders, and other paragraph-level settings.

C#
public ParagraphProperties Properties { get; }
Property Value:

The properties.

Gets the background shading settings applied to the paragraph's area, including fill color and pattern.

C#
public Shading Shading { get; }
Property Value:

The shading.

Gets the spacing settings for this paragraph, controlling space before, after, and line spacing values.

C#
public ParagraphSpacing Spacing { get; }
Property Value:

The paragraph spacing.

Gets or sets the identifier of the paragraph style applied to this paragraph, affecting formatting through style inheritance.

C#
public string StyleId { get; set; }
Property Value:

The style id.

Implements: IElementWithStyle.StyleId

Gets or sets the collection of custom tab stop positions and alignments for this paragraph.

C#
public TabStopCollection TabStops { get; set; }
Property Value:

The tab stops.

Gets or sets the horizontal alignment of text within the paragraph; defaults to Left.

C#
public Alignment TextAlignment { get; set; }
Property Value:

The default value is Left