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 Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ParagraphProperties

Represents the properties that define the appearance and formatting of a paragraph in a document.

Inheritance
System.Object
DocumentElementPropertiesBase
ParagraphProperties
Inherited Members
DocumentElementPropertiesBase.GetStyleProperty(IStylePropertyDefinition)
DocumentElementPropertiesBase.GetStyleProperty(String)
DocumentElementPropertiesBase.MergePropertiesWith(DocumentElementPropertiesBase)
DocumentElementPropertiesBase.ToString()
DocumentElementPropertiesBase.ClearProperties()
DocumentElementPropertiesBase.IElementWithStyle.StyleNameChanged()
DocumentElementPropertiesBase.IElementWithStyle.OnStyleRemovedFromDocument()
DocumentElementPropertiesBase.IElementWithStyle.StylePropertyChanging(Object, StylePropertyChangeEventArgs)
DocumentElementPropertiesBase.IElementWithStyle.StylePropertyChanged(Object, StylePropertyChangeEventArgs)
DocumentElementPropertiesBase.OnStylePropertyChangedOverride(StylePropertyChangeEventArgs)
DocumentElementPropertiesBase.OnStyleChanged()
DocumentElementPropertiesBase.OnStyleChanging()
DocumentElementPropertiesBase.StyleProperties
DocumentElementPropertiesBase.StyleName
DocumentElementPropertiesBase.OriginalStyleName
DocumentElementPropertiesBase.Style
DocumentElementPropertiesBase.HasRevisions
DocumentElementPropertiesBase.RevisionInfo
DocumentElementPropertiesBase.OriginalProperties
DocumentElementPropertiesBase.IElementWithStyle.StyleName
Namespace: Telerik.Windows.Documents.Model.Styles
Assembly: Telerik.Windows.Controls.RichTextBox.dll

Syntax

public class ParagraphProperties : DocumentElementPropertiesBase, IElementWithStyle

Constructors

ParagraphProperties()

Declaration
public ParagraphProperties()

ParagraphProperties(DocumentElement)

Declaration
public ParagraphProperties(DocumentElement owner)
Parameters
DocumentElement owner

ParagraphProperties(StyleDefinition)

Declaration
public ParagraphProperties(StyleDefinition owner)
Parameters
StyleDefinition owner

Properties

AutomaticSpacingAfter

Gets or sets the automatic spacing value to apply after the paragraph.

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

The automatic spacing value in units defined by the parent document.

AutomaticSpacingBefore

Gets or sets the automatic spacing before a paragraph.

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

A value that specifies the amount of automatic spacing before the paragraph. The default value is determined by the paragraph's style settings.

Background

Gets or sets the background properties of the paragraph.

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

The background properties that define the appearance of the paragraph's background.

FirstLineIndent

Gets or sets the indent of the first line of the paragraph.

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

A value representing the first line indent in measurement units.

FlowDirection

Gets or sets the flow direction of the paragraph properties, defining how text flows in the paragraph.

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

Specifies the flow direction as a value of the System.Windows.FlowDirection enum.

IsLineBreakingRuleEnabled

Gets or sets a value indicating whether the line breaking rule is enabled for the paragraph properties.

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

A boolean value; true if the line breaking rule is enabled; otherwise, false.

KeepLines

Gets or sets a value indicating whether the paragraph should keep its lines together when paging. This property ensures that all lines of the paragraph are kept on the same page to prevent awkward breaks in content.

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

A boolean value where true indicates that the lines should be kept together and false indicates that they can be broken across pages.

LeftIndent

Gets or sets the left indent of the paragraph properties.

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

A value representing the left indent, measured in units specified by the document's measurement system.

LineSpacing

Gets or sets the line spacing for the paragraph properties.

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

A value representing the line spacing applied to the paragraph. The line spacing determines the vertical space between lines of text in a paragraph.

LineSpacingType

Represents the line spacing type for paragraph properties in Telerik document model.

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

ListId

Gets or sets the identifier for the list associated with the paragraph properties.

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

The unique identifier of the list that the paragraph belongs to.

ListLevel

Represents the list level properties for a paragraph in the document model.

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

OutlineLevel

Gets or sets the outline level of the paragraph properties.

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

The outline level of the paragraph, which determines its hierarchical position in the document structure.

RightIndent

Gets or sets the right indent of the paragraph properties. This property determines the amount of space to be added to the right of the paragraph.

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

A float value representing the right indent in unit of measurement, typically in points.

SpacingAfter

Gets or sets the spacing that follows a paragraph.

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

The amount of spacing, in device-independent units (1/96th of an inch per unit), that is added after the paragraph.

SpacingBefore

Gets or sets the spacing before the paragraph. This property defines the amount of space that is added before the paragraph when rendering the document.

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

A System.Double representing the spacing in points. The default value is 0.

SuppressLineNumbers

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

TabStops

Gets the collection of tab stops defined for the paragraph.

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

TextAlignment

Gets or sets the text alignment for the paragraph.

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

A value of the RadTextAlignment enumeration that specifies the alignment of the text within the paragraph.

ThemeBackground

Gets or sets the theme background properties for a paragraph.

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

The theme background properties associated with the paragraph.

ThemeFillShade

Gets or sets the theme fill shade for the paragraph properties.

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

A value representing the theme fill shade, which determines the shading color applied to the paragraph.

ThemeFillTint

Gets or sets the tint value for the theme fill of the paragraph properties.

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

A double value that represents the tint. This value modifies the theme color applied to the paragraph.

Methods

CopyPropertiesFrom(DocumentElementPropertiesBase)

Copies the properties from the specified DocumentElementPropertiesBase instance to the current ParagraphProperties object.

Declaration
public override void CopyPropertiesFrom(DocumentElementPropertiesBase fromProperties)
Parameters
DocumentElementPropertiesBase fromProperties

The DocumentElementPropertiesBase instance from which to copy properties.

Overrides
DocumentElementPropertiesBase.CopyPropertiesFrom(DocumentElementPropertiesBase)

CreateInstance()

Declaration
protected override DocumentElementPropertiesBase CreateInstance()
Returns
DocumentElementPropertiesBase

Overrides
DocumentElementPropertiesBase.CreateInstance()

InitProperties()

Declaration
protected override void InitProperties()
Overrides
DocumentElementPropertiesBase.InitProperties()

OnTabStopsChanged()

Declaration
protected virtual void OnTabStopsChanged()

ValidateStyleType(StyleDefinition)

Declaration
protected override void ValidateStyleType(StyleDefinition value)
Parameters
StyleDefinition value

Overrides
DocumentElementPropertiesBase.ValidateStyleType(StyleDefinition)

Events

TabStopsChanged

Declaration
public event EventHandler TabStopsChanged
Event Type
System.EventHandler

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
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.