Paragraph
Definition
Namespace:Telerik.WinForms.Documents.Model
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class Paragraph : Block, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor
Inheritance: objectDisposableObjectRadObjectDocumentElementBlockParagraph...
Implements:
Inherited Members
Constructors
Initializes a new instance of the Paragraph class.
public Paragraph()
Fields
public static readonly StylePropertyDefinition<bool?, ParagraphProperties> AutomaticSpacingAfterProperty
public static readonly StylePropertyDefinition<bool?, ParagraphProperties> AutomaticSpacingBeforeProperty
public static readonly StylePropertyDefinition<Color?, ParagraphProperties> BackgroundProperty
public static readonly StylePropertyDefinition<double?, ParagraphProperties> FirstLineIndentProperty
The flow direction property.
public static readonly StylePropertyDefinition<FlowDirection?, ParagraphProperties> FlowDirectionProperty
public static readonly StylePropertyDefinition<bool?, ParagraphProperties> IsLineBreakingRuleEnabledProperty
public static readonly StylePropertyDefinition<bool?, ParagraphProperties> KeepLinesProperty
public static readonly StylePropertyDefinition<double?, ParagraphProperties> LeftIndentProperty
public static readonly StylePropertyDefinition<double?, ParagraphProperties> LineSpacingProperty
public static readonly StylePropertyDefinition<LineSpacingType?, ParagraphProperties> LineSpacingTypeProperty
public static readonly StylePropertyDefinition<int?, ParagraphProperties> ListIdProperty
public static readonly StylePropertyDefinition<int?, ParagraphProperties> ListLevelProperty
public static readonly StylePropertyDefinition<int?, ParagraphProperties> OutlineLevelProperty
public static readonly StylePropertyDefinition<double?, ParagraphProperties> RightIndentProperty
public static readonly StylePropertyDefinition<double?, ParagraphProperties> SpacingAfterProperty
public static readonly StylePropertyDefinition<double?, ParagraphProperties> SpacingBeforeProperty
public static readonly StylePropertyDefinition<bool?, ParagraphProperties> SuppressLineNumbersProperty
public static readonly StylePropertyDefinition<RadTextAlignment?, ParagraphProperties> TextAlignmentProperty
public static readonly StylePropertyDefinition<ThemeColorsEnum?, ParagraphProperties> ThemeBackgroundProperty
public static readonly StylePropertyDefinition<string, ParagraphProperties> ThemeFillShadeProperty
public static readonly StylePropertyDefinition<string, ParagraphProperties> ThemeFillTintProperty
Properties
[XamlSerializable]
public bool AutomaticSpacingAfter { get; set; }
Gets or sets a value indicating whether an automatic spacing before should be applied.
[XamlSerializable]
public bool AutomaticSpacingBefore { get; set; }
true if [automatic spacing before]; otherwise, false.
Gets or sets the background.
[XamlSerializable]
public Color Background { get; set; }
The background.
Gets or sets the information for revisions on this element.
[XamlCompositePropertySerializable]
public DocumentElementRevisionInfo ElementRevisionInfo { get; set; }
The element revision information.
Gets or sets the first line indent.
[XamlSerializable]
public double FirstLineIndent { get; set; }
The first line indent.
Gets or sets the flow direction.
[XamlSerializable(FlowDirection.LeftToRight)]
public FlowDirection FlowDirection { get; set; }
A value of type FlowDirection.
Gets or sets the size of the font for the last paragraph marker.
[XamlSerializable]
public double FontSize { get; set; }
The size of the font.
Gets or sets the hanging indent.
public double HangingIndent { get; set; }
The hanging indent.
Gets a value indicating whether this instance has revisions.
public bool HasRevisions { get; }
true if this instance has revisions; otherwise, false.
Gets the collection of Inline elements added as children to this paragraph.
public InlineCollection Inlines { get; }
The inlines.
Gets a value indicating whether this instance has been deleted into document with enabled Track Changes.
public bool IsDeleted { get; }
true if this instance is deleted; otherwise, false.
Gets a value indicating whether this paragraph is empty.
public bool IsEmpty { get; }
true if the paragraph doesn't contain inlines; otherwise, false.
Gets a value indicating whether a heading style is applied to this paragraph.
public bool IsHeading { get; }
true if this instance has a heading style; otherwise, false.
Gets a value indicating whether this paragraph is included in a list.
public bool IsInList { get; }
true if this instance is in list; otherwise, false.
Gets a value indicating whether this instance has been inserted into document with enabled Track Changes.
public bool IsInserted { get; }
true if this instance is inserted; otherwise, false.
Gets or sets a value indicating whether East Asian typography rules will be applied to determine which characters may begin and end each line.
[XamlSerializable(true)]
public bool IsLineBreakingRuleEnabled { get; set; }
Gets or sets the left indent.
[XamlSerializable]
public double LeftIndent { get; set; }
The left indent.
Gets or sets the spacing between the different lines of the paragraph.
[XamlSerializable]
public double LineSpacing { get; set; }
The line spacing.
[XamlSerializable]
public LineSpacingType LineSpacingType { get; set; }
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.
[XamlSerializable(-1)]
public int ListId { get; set; }
The list identifier.
Gets or sets the list level.
[XamlSerializable(0)]
public int ListLevel { get; set; }
The list level.
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.
[XamlSerializable(0)]
public int OutlineLevel { get; set; }
The outline level.
Gets or sets the right indent.
[XamlSerializable]
public double RightIndent { get; set; }
The right indent.
[XamlSerializable]
public double SpacingAfter { get; set; }
Gets or sets the spacing before the paragraph.
[XamlSerializable]
public double SpacingBefore { get; set; }
The spacing before.
Gets or sets the value indicating whether the line numbering for the current Paragraph is suppressed.
[XamlSerializable]
public bool SuppressLineNumbers { get; set; }
The line numbering.
Gets or sets the tab stops.
[XamlCompositePropertySerializable]
public TabStopCollection TabStops { get; set; }
The tab stops.
Gets or sets the text alignment.
[XamlSerializable]
public RadTextAlignment TextAlignment { get; set; }
A value of type RadTextAlignment.
Gets or sets the theme background.
[XamlSerializable]
public ThemeColorsEnum ThemeBackground { get; set; }
The theme background.
Gets or sets the theme fill shade.
[XamlSerializable]
public string ThemeFillShade { get; set; }
The theme fill shade.
Gets or sets the theme fill tint.
[XamlSerializable]
public string ThemeFillTint { get; set; }
The theme fill tint.
Methods
Copies the properties from another Paragraph to the current instance.
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)
The Paragraph to copy the properties from.
Overrides:
Creates a deep copy of the element.
public override DocumentElement CreateDeepCopy()
The copied element.
Overrides:
Creates a ParagraphLayoutBox for the element.
public override LayoutBox CreateLayoutBox(DocumentStructureCollection documentCollection)
The document collection.
Returns:Overrides:
Creates a new Paragraph instance.
protected override DocumentElement CreateNewElementInstance()
The new instance.
Overrides:
Called when a DocumentElement is removed.
protected override void OnRemoved()
Overrides:
Called after the style of a document element has been changed.
protected override void OnStyleChanged()
Overrides:
Called before the style of a document element changes.
protected override void OnStyleChanging()
Overrides:
Called when TabStops collection changes.
protected virtual void OnTabStopsChanged()
Removes the paragraph from a list.
public void RemoveFromList()
Events
Occurs when the TabStops collection changes.
public event EventHandler TabStopsChanged