ClassParagraph
Represents a paragraph element in a document model, containing text and formatting properties.
Definition
Namespace:Telerik.Windows.Documents.Model
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class Paragraph : Block
Inheritance: objectDocumentElementBlockParagraph
Inherited Members
Constructors
Paragraph()
Initializes a new instance of the Paragraph class.
Declaration
public Paragraph()
Paragraph(Paragraph)
Declaration
public Paragraph(Paragraph originalParagraph)
Parameters
originalParagraph
The original paragraph.
Fields
AutomaticSpacingAfterProperty
Declaration
public static readonly StylePropertyDefinition<bool?, ParagraphProperties> AutomaticSpacingAfterProperty
Field Value
AutomaticSpacingBeforeProperty
Declaration
public static readonly StylePropertyDefinition<bool?, ParagraphProperties> AutomaticSpacingBeforeProperty
Field Value
BackgroundProperty
Declaration
public static readonly StylePropertyDefinition<Color?, ParagraphProperties> BackgroundProperty
Field Value
FirstLineIndentProperty
Declaration
public static readonly StylePropertyDefinition<double?, ParagraphProperties> FirstLineIndentProperty
Field Value
FlowDirectionProperty
The flow direction property.
Declaration
public static readonly StylePropertyDefinition<FlowDirection?, ParagraphProperties> FlowDirectionProperty
Field Value
StylePropertyDefinition<FlowDirection?, ParagraphProperties>
IsLineBreakingRuleEnabledProperty
Declaration
public static readonly StylePropertyDefinition<bool?, ParagraphProperties> IsLineBreakingRuleEnabledProperty
Field Value
KeepLinesProperty
Declaration
public static readonly StylePropertyDefinition<bool?, ParagraphProperties> KeepLinesProperty
Field Value
LeftIndentProperty
Declaration
public static readonly StylePropertyDefinition<double?, ParagraphProperties> LeftIndentProperty
Field Value
LineSpacingProperty
Declaration
public static readonly StylePropertyDefinition<double?, ParagraphProperties> LineSpacingProperty
Field Value
LineSpacingTypeProperty
Declaration
public static readonly StylePropertyDefinition<LineSpacingType?, ParagraphProperties> LineSpacingTypeProperty
Field Value
StylePropertyDefinition<LineSpacingType?, ParagraphProperties>
ListIdProperty
Declaration
public static readonly StylePropertyDefinition<int?, ParagraphProperties> ListIdProperty
Field Value
ListLevelProperty
Declaration
public static readonly StylePropertyDefinition<int?, ParagraphProperties> ListLevelProperty
Field Value
OutlineLevelProperty
Declaration
public static readonly StylePropertyDefinition<int?, ParagraphProperties> OutlineLevelProperty
Field Value
RightIndentProperty
Declaration
public static readonly StylePropertyDefinition<double?, ParagraphProperties> RightIndentProperty
Field Value
SpacingAfterProperty
Declaration
public static readonly StylePropertyDefinition<double?, ParagraphProperties> SpacingAfterProperty
Field Value
SpacingBeforeProperty
Declaration
public static readonly StylePropertyDefinition<double?, ParagraphProperties> SpacingBeforeProperty
Field Value
SuppressLineNumbersProperty
Declaration
public static readonly StylePropertyDefinition<bool?, ParagraphProperties> SuppressLineNumbersProperty
Field Value
TextAlignmentProperty
Declaration
public static readonly StylePropertyDefinition<RadTextAlignment?, ParagraphProperties> TextAlignmentProperty
Field Value
StylePropertyDefinition<RadTextAlignment?, ParagraphProperties>
ThemeBackgroundProperty
Declaration
public static readonly StylePropertyDefinition<ThemeColorsEnum?, ParagraphProperties> ThemeBackgroundProperty
Field Value
StylePropertyDefinition<ThemeColorsEnum?, ParagraphProperties>
ThemeFillShadeProperty
Declaration
public static readonly StylePropertyDefinition<string, ParagraphProperties> ThemeFillShadeProperty
Field Value
ThemeFillTintProperty
Declaration
public static readonly StylePropertyDefinition<string, ParagraphProperties> ThemeFillTintProperty
Field Value
Properties
AutomaticSpacingAfter
Gets or sets the automatic spacing after the paragraph. This property determines the spacing that automatically applies after the paragraph, which can affect the overall layout and readability of the document.
Declaration
[XamlSerializable]
public bool AutomaticSpacingAfter { get; set; }
Property Value
A double representing the spacing after the paragraph in the specified measurement units.
AutomaticSpacingBefore
Gets or sets a value indicating whether an automatic spacing before should be applied.
Declaration
[XamlSerializable]
public bool AutomaticSpacingBefore { get; set; }
Property Value
true if [automatic spacing before]; otherwise, false.
Background
Gets or sets the background.
Declaration
[XamlSerializable]
public Color Background { get; set; }
Property Value
Color
The background.
ElementRevisionInfo
Gets or sets the information for revisions on this element.
Declaration
[XamlCompositePropertySerializable]
public DocumentElementRevisionInfo ElementRevisionInfo { get; set; }
Property Value
The element revision information.
FirstLineIndent
Gets or sets the first line indent.
Declaration
[XamlSerializable]
public double FirstLineIndent { get; set; }
Property Value
The first line indent.
FlowDirection
Gets or sets the flow direction.
Declaration
[XamlSerializable]
public FlowDirection FlowDirection { get; set; }
Property Value
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
The size of the font.
HangingIndent
Gets or sets the hanging indent.
Declaration
public double HangingIndent { get; set; }
Property Value
The hanging indent.
HasRevisions
Gets a value indicating whether this instance has revisions.
Declaration
public bool HasRevisions { get; }
Property Value
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
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
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
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
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
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
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
LeftIndent
Gets or sets the left indent.
Declaration
[XamlSerializable]
public double LeftIndent { get; set; }
Property Value
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
The line spacing.
LineSpacingType
Specifies the line spacing type of a paragraph.
Declaration
[XamlSerializable]
public LineSpacingType LineSpacingType { get; set; }
Property Value
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
The list identifier.
ListLevel
Gets or sets the list level.
Declaration
[XamlSerializable(0)]
public int ListLevel { get; set; }
Property Value
The list level.
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
The outline level.
RightIndent
Gets or sets the right indent.
Declaration
[XamlSerializable]
public double RightIndent { get; set; }
Property Value
The right indent.
SpacingAfter
Gets or sets the spacing after the paragraph.
Declaration
[XamlSerializable]
public double SpacingAfter { get; set; }
Property Value
A double value representing the spacing, in pixels, that follows the paragraph.
SpacingBefore
Gets or sets the spacing before the paragraph.
Declaration
[XamlSerializable]
public double SpacingBefore { get; set; }
Property Value
The spacing before.
SuppressLineNumbers
Gets or sets the value indicating whether the line numbering for the current Paragraph is suppressed.
Declaration
[XamlSerializable]
public bool SuppressLineNumbers { get; set; }
Property Value
The line numbering.
TabStops
Gets or sets the tab stops.
Declaration
[XamlCompositePropertySerializable]
public TabStopCollection TabStops { get; set; }
Property Value
The tab stops.
TextAlignment
Gets or sets the text alignment.
Declaration
[XamlSerializable]
public RadTextAlignment TextAlignment { get; set; }
Property Value
A value of type RadTextAlignment.
ThemeBackground
Gets or sets the theme background.
Declaration
[XamlSerializable]
public ThemeColorsEnum ThemeBackground { get; set; }
Property Value
The theme background.
ThemeFillShade
Gets or sets the theme fill shade.
Declaration
[XamlSerializable]
public string ThemeFillShade { get; set; }
Property Value
The theme fill shade.
ThemeFillTint
Gets or sets the theme fill tint.
Declaration
[XamlSerializable]
public string ThemeFillTint { get; set; }
Property Value
The theme fill tint.
Methods
CopyPropertiesFromOverride(DocumentElement)
Copies the properties from another Paragraph to the current instance.
Declaration
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)
Parameters
fromElement
The Paragraph to copy the properties from.
Overrides
CreateDeepCopy()
Creates a deep copy of the element.
Declaration
public override DocumentElement CreateDeepCopy()
Returns
The copied element.
Overrides
CreateLayoutBox(DocumentStructureCollection)
Creates a ParagraphLayoutBox for the element.
Declaration
public override LayoutBox CreateLayoutBox(DocumentStructureCollection documentCollection)
Parameters
documentCollection
The document collection.
Returns
Overrides
CreateNewElementInstance()
Creates a new Paragraph instance.
Declaration
protected override DocumentElement CreateNewElementInstance()
Returns
The new instance.
Overrides
HasSameStyle(Paragraph)
Determines whether the current instance has the same style properties as another one.
OnRemoved()
Called when a DocumentElement is removed.
Declaration
protected override void OnRemoved()
Overrides
OnStyleChanged()
Called after the style of a document element has been changed.
Declaration
protected override void OnStyleChanged()
Overrides
OnStyleChanging()
Called before the style of a document element changes.
Declaration
protected override void OnStyleChanging()
Overrides
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.