skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class Paragraph

Inheritance
System.Object
DocumentElement
Block
Paragraph
Inherited Members
DocumentElement.GetStyleProperty(IStylePropertyDefinition)
DocumentElement.GetStyleProperty(String)
DocumentElement.EnumerateChildrenOfType<T>()
DocumentElement.GetParentOfType<T>()
DocumentElement.CreateLayoutBox()
DocumentElement.CopyPropertiesFrom(DocumentElement)
DocumentElement.CopyPropertiesFromStyle(StyleDefinition)
DocumentElement.ExtractStyleFromProperties()
DocumentElement.ExtractStyleFromLocalProperties()
DocumentElement.InvalidateAssociatedBoxesArrange()
DocumentElement.InvalidateAssociatedBoxesMeasure()
DocumentElement.InvalidateAssociatedBoxesLayout()
DocumentElement.GetAssociatedLayoutBoxes()
DocumentElement.GetRootDocument()
DocumentElement.CreateShallowCopy()
DocumentElement.GetPropertyValueSource(IStylePropertyDefinition)
DocumentElement.ClearValue(IStylePropertyDefinition)
DocumentElement.add_StylePropertyChanged(StylePropertyChangeEventHandler)
DocumentElement.remove_StylePropertyChanged(StylePropertyChangeEventHandler)
DocumentElement.OnStylePropertyChanged(StylePropertyChangeEventArgs)
DocumentElement.OnParentChanging()
DocumentElement.OnParentChanged()
DocumentElement.add_PropertyValueChanged(StylePropertyChangeEventHandler)
DocumentElement.remove_PropertyValueChanged(StylePropertyChangeEventHandler)
DocumentElement.ChildIndex
DocumentElement.HasStyle
DocumentElement.Style
DocumentElement.StyleName
DocumentElement.Tag
DocumentElement.DefaultStyleSettings
DocumentElement.FirstLayoutBox
DocumentElement.LastLayoutBox
DocumentElement.IsFirstLayoutBoxInitialized
DocumentElement.DocumentElements
DocumentElement.Parent
DocumentElement.Children
DocumentElement.PreviousSibling
DocumentElement.NextSibling
DocumentElement.Cursor
DocumentElement.OriginalProperties
DocumentElement.RevisionInfo
DocumentElement.StyleChanging
DocumentElement.StyleChanged
DocumentElement.StylePropertyChanged
DocumentElement.ParentChanging
DocumentElement.ParentChanged
DocumentElement.PropertyValueChanged
Namespace: Telerik.Windows.Documents.Model
Assembly: Telerik.Windows.Documents.dll

Syntax

public class Paragraph : Block

Constructors

Paragraph()

Initializes a new instance of the Paragraph class.

Declaration
public Paragraph()

Paragraph(Paragraph)

Initializes a new instance of the Paragraph class by copying an already existing Paragraph.

Declaration
public Paragraph(Paragraph originalParagraph)
Parameters
Paragraph originalParagraph

The original paragraph.

Fields

AutomaticSpacingAfterProperty

Declaration
public static readonly StylePropertyDefinition<Nullable<bool>, ParagraphProperties> AutomaticSpacingAfterProperty
Field Value
StylePropertyDefinition<System.Nullable<System.Boolean>, ParagraphProperties>

AutomaticSpacingBeforeProperty

Declaration
public static readonly StylePropertyDefinition<Nullable<bool>, ParagraphProperties> AutomaticSpacingBeforeProperty
Field Value
StylePropertyDefinition<System.Nullable<System.Boolean>, ParagraphProperties>

BackgroundProperty

Declaration
public static readonly StylePropertyDefinition<Nullable<Color>, ParagraphProperties> BackgroundProperty
Field Value
StylePropertyDefinition<System.Nullable<System.Windows.Media.Color>, ParagraphProperties>

FirstLineIndentProperty

Declaration
public static readonly StylePropertyDefinition<Nullable<double>, ParagraphProperties> FirstLineIndentProperty
Field Value
StylePropertyDefinition<System.Nullable<System.Double>, ParagraphProperties>

FlowDirectionProperty

The flow direction property.

Declaration
public static readonly StylePropertyDefinition<Nullable<FlowDirection>, ParagraphProperties> FlowDirectionProperty
Field Value
StylePropertyDefinition<System.Nullable<System.Windows.FlowDirection>, ParagraphProperties>

IsLineBreakingRuleEnabledProperty

Declaration
public static readonly StylePropertyDefinition<Nullable<bool>, ParagraphProperties> IsLineBreakingRuleEnabledProperty
Field Value
StylePropertyDefinition<System.Nullable<System.Boolean>, ParagraphProperties>

KeepLinesProperty

Declaration
public static readonly StylePropertyDefinition<Nullable<bool>, ParagraphProperties> KeepLinesProperty
Field Value
StylePropertyDefinition<System.Nullable<System.Boolean>, ParagraphProperties>

LeftIndentProperty

Declaration
public static readonly StylePropertyDefinition<Nullable<double>, ParagraphProperties> LeftIndentProperty
Field Value
StylePropertyDefinition<System.Nullable<System.Double>, ParagraphProperties>

LineSpacingProperty

Declaration
public static readonly StylePropertyDefinition<Nullable<double>, ParagraphProperties> LineSpacingProperty
Field Value
StylePropertyDefinition<System.Nullable<System.Double>, ParagraphProperties>

LineSpacingTypeProperty

Declaration
public static readonly StylePropertyDefinition<Nullable<LineSpacingType>, ParagraphProperties> LineSpacingTypeProperty
Field Value
StylePropertyDefinition<System.Nullable<LineSpacingType>, ParagraphProperties>

ListIdProperty

Declaration
public static readonly StylePropertyDefinition<Nullable<int>, ParagraphProperties> ListIdProperty
Field Value
StylePropertyDefinition<System.Nullable<System.Int32>, ParagraphProperties>

ListLevelProperty

Declaration
public static readonly StylePropertyDefinition<Nullable<int>, ParagraphProperties> ListLevelProperty
Field Value
StylePropertyDefinition<System.Nullable<System.Int32>, ParagraphProperties>

OutlineLevelProperty

Declaration
public static readonly StylePropertyDefinition<Nullable<int>, ParagraphProperties> OutlineLevelProperty
Field Value
StylePropertyDefinition<System.Nullable<System.Int32>, ParagraphProperties>

RightIndentProperty

Declaration
public static readonly StylePropertyDefinition<Nullable<double>, ParagraphProperties> RightIndentProperty
Field Value
StylePropertyDefinition<System.Nullable<System.Double>, ParagraphProperties>

SpacingAfterProperty

Declaration
public static readonly StylePropertyDefinition<Nullable<double>, ParagraphProperties> SpacingAfterProperty
Field Value
StylePropertyDefinition<System.Nullable<System.Double>, ParagraphProperties>

SpacingBeforeProperty

Declaration
public static readonly StylePropertyDefinition<Nullable<double>, ParagraphProperties> SpacingBeforeProperty
Field Value
StylePropertyDefinition<System.Nullable<System.Double>, ParagraphProperties>

TextAlignmentProperty

Declaration
public static readonly StylePropertyDefinition<Nullable<RadTextAlignment>, ParagraphProperties> TextAlignmentProperty
Field Value
StylePropertyDefinition<System.Nullable<RadTextAlignment>, ParagraphProperties>

ThemeBackgroundProperty

Declaration
public static readonly StylePropertyDefinition<Nullable<ThemeColorsEnum>, ParagraphProperties> ThemeBackgroundProperty
Field Value
StylePropertyDefinition<System.Nullable<ThemeColorsEnum>, ParagraphProperties>

ThemeFillShadeProperty

Declaration
public static readonly StylePropertyDefinition<string, ParagraphProperties> ThemeFillShadeProperty
Field Value
StylePropertyDefinition<System.String, ParagraphProperties>

ThemeFillTintProperty

Declaration
public static readonly StylePropertyDefinition<string, ParagraphProperties> ThemeFillTintProperty
Field Value
StylePropertyDefinition<System.String, ParagraphProperties>

Properties

AutomaticSpacingAfter

Declaration
[XamlSerializable]
public bool AutomaticSpacingAfter { get; set; }
Property Value
System.Boolean

AutomaticSpacingBefore

Gets or sets a value indicating whether an automatic spacing before should be applied.

Declaration
[XamlSerializable]
public bool AutomaticSpacingBefore { get; set; }
Property Value
System.Boolean

true if [automatic spacing before]; otherwise, false.

Background

Gets or sets the background.

Declaration
[XamlSerializable]
public Color Background { get; set; }
Property Value
System.Windows.Media.Color

The background.

ElementRevisionInfo

Gets or sets the information for revisions on this element.

Declaration
[XamlCompositePropertySerializable]
public DocumentElementRevisionInfo ElementRevisionInfo { get; set; }
Property Value
DocumentElementRevisionInfo

The element revision information.

FirstLineIndent

Gets or sets the first line indent.

Declaration
[XamlSerializable]
public double FirstLineIndent { get; set; }
Property Value
System.Double

The first line indent.

FlowDirection

Gets or sets the flow direction.

Declaration
[XamlSerializable]
public FlowDirection FlowDirection { get; set; }
Property Value
System.Windows.FlowDirection

A value of type FlowDirection.

FontSize

Gets or sets the size of the font for the last paragraph marker.

Declaration
[XamlSerializable]
public double FontSize { get; set; }
Property Value
System.Double

The size of the font.

HangingIndent

Gets or sets the hanging indent.

Declaration
public double HangingIndent { get; set; }
Property Value
System.Double

The hanging indent.

HasRevisions

Gets a value indicating whether this instance has revisions.

Declaration
public bool HasRevisions { get; }
Property Value
System.Boolean

true if this instance has revisions; otherwise, false.

Inlines

Gets the collection of Inline elements added as children to this paragraph.

Declaration
public InlineCollection Inlines { get; }
Property Value
InlineCollection

The inlines.

IsDeleted

Gets a value indicating whether this instance has been deleted into document with enabled Track Changes.

Declaration
public bool IsDeleted { get; }
Property Value
System.Boolean

true if this instance is deleted; otherwise, false.

IsEmpty

Gets a value indicating whether this paragraph is empty.

Declaration
public bool IsEmpty { get; }
Property Value
System.Boolean

true if the paragraph doesn't contain inlines; otherwise, false.

IsHeading

Gets a value indicating whether a heading style is applied to this paragraph.

Declaration
public bool IsHeading { get; }
Property Value
System.Boolean

true if this instance has a heading style; otherwise, false.

IsInList

Gets a value indicating whether this paragraph is included in a list.

Declaration
public bool IsInList { get; }
Property Value
System.Boolean

true if this instance is in list; otherwise, false.

IsInserted

Gets a value indicating whether this instance has been inserted into document with enabled Track Changes.

Declaration
public bool IsInserted { get; }
Property Value
System.Boolean

true if this instance is inserted; otherwise, false.

IsLineBreakingRuleEnabled

Gets or sets a value indicating whether East Asian typography rules will be applied to determine which characters may begin and end each line.

Declaration
[XamlSerializable(true)]
public bool IsLineBreakingRuleEnabled { get; set; }
Property Value
System.Boolean

KeepLines

Declaration
[XamlSerializable(false)]
public bool KeepLines { get; set; }
Property Value
System.Boolean

LeftIndent

Gets or sets the left indent.

Declaration
[XamlSerializable]
public double LeftIndent { get; set; }
Property Value
System.Double

The left indent.

LineSpacing

Gets or sets the spacing between the different lines of the paragraph.

Declaration
[XamlSerializable]
public double LineSpacing { get; set; }
Property Value
System.Double

The line spacing.

LineSpacingType

Declaration
[XamlSerializable]
public LineSpacingType LineSpacingType { get; set; }
Property Value
LineSpacingType

ListId

Gets or sets identifier number of the list the paragraph is included in. The default value is -1 - the paragraph is not included in a list.

Declaration
[XamlSerializable(-1)]
public int ListId { get; set; }
Property Value
System.Int32

The list identifier.

ListItemInfo

Declaration
public ListItemInfo ListItemInfo { get; set; }
Property Value
ListItemInfo

ListItemSerializationData

Declaration
public ListItemSerializationData ListItemSerializationData { get; set; }
Property Value
ListItemSerializationData

ListItemSerializationInfo

Declaration
public ListItemSerializationInfo ListItemSerializationInfo { get; set; }
Property Value
ListItemSerializationInfo

ListLevel

Gets or sets the list level.

Declaration
[XamlSerializable(0)]
public int ListLevel { get; set; }
Property Value
System.Int32

The list level.

NumberSkip

Declaration
[XamlSerializable(0)]
public int NumberSkip { get; set; }
Property Value
System.Int32

OutlineLevel

Gets or sets a value indicating the outline level. The outline level defines the level of this paragraph in TOC field. The default value is 0 - no level.

Declaration
[XamlSerializable(0)]
public int OutlineLevel { get; set; }
Property Value
System.Int32

The outline level.

ParagraphSymbolPropertiesStyle

Declaration
[XamlCompositePropertySerializable]
public SpanProperties ParagraphSymbolPropertiesStyle { get; set; }
Property Value
SpanProperties

RightIndent

Gets or sets the right indent.

Declaration
[XamlSerializable]
public double RightIndent { get; set; }
Property Value
System.Double

The right indent.

SpacingAfter

Declaration
[XamlSerializable]
public double SpacingAfter { get; set; }
Property Value
System.Double

SpacingBefore

Gets or sets the spacing before the paragraph.

Declaration
[XamlSerializable]
public double SpacingBefore { get; set; }
Property Value
System.Double

The spacing before.

TabStops

Gets or sets the tab stops.

Declaration
[XamlCompositePropertySerializable]
public TabStopCollection TabStops { get; set; }
Property Value
TabStopCollection

The tab stops.

TextAlignment

Gets or sets the text alignment.

Declaration
[XamlSerializable]
public RadTextAlignment TextAlignment { get; set; }
Property Value
RadTextAlignment

A value of type RadTextAlignment.

ThemeBackground

Gets or sets the theme background.

Declaration
[XamlSerializable]
public ThemeColorsEnum ThemeBackground { get; set; }
Property Value
ThemeColorsEnum

The theme background.

ThemeFillShade

Gets or sets the theme fill shade.

Declaration
[XamlSerializable]
public string ThemeFillShade { get; set; }
Property Value
System.String

The theme fill shade.

ThemeFillTint

Gets or sets the theme fill tint.

Declaration
[XamlSerializable]
public string ThemeFillTint { get; set; }
Property Value
System.String

The theme fill tint.

Methods

ChangeLeftIndent(Double)

Declaration
public void ChangeLeftIndent(double newLeftIndent)
Parameters
System.Double newLeftIndent

CopyPropertiesFromOverride(DocumentElement)

Copies the properties from another Paragraph to the current instance.

Declaration
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)
Parameters
DocumentElement fromElement

The Paragraph to copy the properties from.

Overrides
DocumentElement.CopyPropertiesFromOverride(DocumentElement)

CreateDeepCopy()

Creates a deep copy of the element.

Declaration
public override DocumentElement CreateDeepCopy()
Returns
DocumentElement

The copied element.

Overrides
DocumentElement.CreateDeepCopy()

CreateLayoutBox(DocumentStructureCollection)

Creates a ParagraphLayoutBox for the element.

Declaration
public override LayoutBox CreateLayoutBox(DocumentStructureCollection documentCollection)
Parameters
DocumentStructureCollection documentCollection

The document collection.

Returns
LayoutBox

Overrides
DocumentElement.CreateLayoutBox(DocumentStructureCollection)

CreateNewElementInstance()

Creates a new Paragraph instance.

Declaration
protected override DocumentElement CreateNewElementInstance()
Returns
DocumentElement

The new instance.

Overrides
DocumentElement.CreateNewElementInstance()

DecreaseLeftIndent()

Declaration
public void DecreaseLeftIndent()

HasSameStyle(Paragraph)

Determines whether the current instance has the same style properties as another one.

Declaration
public virtual bool HasSameStyle(Paragraph other)
Parameters
Paragraph other

The other.

Returns
System.Boolean

true if the current instance has the same style properties as the other one; otherwise, false.

IncreaseLeftIndent()

Declaration
public void IncreaseLeftIndent()

OnRemoved()

Declaration
protected override void OnRemoved()
Overrides
DocumentElement.OnRemoved()

OnStyleChanged()

Declaration
protected override void OnStyleChanged()
Overrides
DocumentElement.OnStyleChanged()

OnStyleChanging()

Declaration
protected override void OnStyleChanging()
Overrides
DocumentElement.OnStyleChanging()

OnTabStopsChanged()

Called when TabStops collection changes.

Declaration
protected virtual void OnTabStopsChanged()

RemoveFromList()

Removes the paragraph from a list.

Declaration
public void RemoveFromList()

Events

TabStopsChanged

Occurs when the TabStops collection changes.

Declaration
public event EventHandler TabStopsChanged
Event Type
System.EventHandler

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
  • Themes Generator
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
  • System Requirements
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.