New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinForms.Documents.Model

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class Paragraph : Block, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor

Inheritance: objectDisposableObjectRadObjectDocumentElementBlockParagraph...

Implements: ICustomTypeDescriptorIDisposableINotifyPropertyChanged

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.OnStylePropertyChanged(StylePropertyChangeEventArgs)DocumentElement.OnParentChanging()DocumentElement.OnParentChanged()DocumentElement.ChildIndexDocumentElement.HasStyleDocumentElement.StyleDocumentElement.StyleNameDocumentElement.TagDocumentElement.FirstLayoutBoxDocumentElement.IsFirstLayoutBoxInitializedDocumentElement.DocumentElementsDocumentElement.ParentDocumentElement.ChildrenDocumentElement.PreviousSiblingDocumentElement.NextSiblingDocumentElement.CursorDocumentElement.StyleChangingDocumentElement.StyleChangedDocumentElement.StylePropertyChangedDocumentElement.ParentChangingDocumentElement.ParentChangedDocumentElement.PropertyValueChangedRadObject.BindingContextPropertyRadObject.RadTypeRadObject.ReplaceDefaultDescriptors(PropertyDescriptorCollection)RadObject.DisposeManagedResources()RadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(RadProperty, object)RadObject.GetValue(RadProperty)RadObject.SetValue(RadProperty, object)RadObject.ResetValue(RadProperty)RadObject.ResetLocalValue(RadProperty)RadObject.ResetValue(RadProperty, ValueResetFlags)RadObject.UpdateValue(RadProperty)RadObject.GetValueSource(RadProperty)RadObject.GetRegisteredRadProperty(string)RadObject.UpdateValueCore(RadPropertyValue)RadObject.SetValueCore(RadPropertyValue, object, object, ValueSource)RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)RadObject.GetDefaultValue(RadPropertyValue, object)RadObject.CoerceValue(RadPropertyValue, object)RadObject.ShouldSerializeProperty(RadProperty)RadObject.CanRaisePropertyChangeNotifications(RadPropertyValue)RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)RadObject.UnbindProperty(RadProperty)RadObject.AddStylePropertySetting(IPropertySetting)RadObject.GetInheritedValue(RadProperty)RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)RadObject.OnPropertyChanged(RadPropertyChangedEventArgs)RadObject.OnNotifyPropertyChanged(string)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.IsPropertyCancelable(RadPropertyMetadata)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.OnBitStateChanged(long, bool, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.PerformDispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.BitStateDisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing...

Constructors

Initializes a new instance of the Paragraph class.

C#
public Paragraph()

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

C#
public Paragraph(Paragraph originalParagraph)
Parameters:originalParagraphParagraph

The original paragraph.

Fields

C#
public static readonly StylePropertyDefinition<bool?, ParagraphProperties> AutomaticSpacingAfterProperty
C#
public static readonly StylePropertyDefinition<bool?, ParagraphProperties> AutomaticSpacingBeforeProperty
C#
public static readonly StylePropertyDefinition<Color?, ParagraphProperties> BackgroundProperty
C#
public static readonly StylePropertyDefinition<double?, ParagraphProperties> FirstLineIndentProperty

The flow direction property.

C#
public static readonly StylePropertyDefinition<FlowDirection?, ParagraphProperties> FlowDirectionProperty
C#
public static readonly StylePropertyDefinition<bool?, ParagraphProperties> IsLineBreakingRuleEnabledProperty
C#
public static readonly StylePropertyDefinition<bool?, ParagraphProperties> KeepLinesProperty
C#
public static readonly StylePropertyDefinition<double?, ParagraphProperties> LeftIndentProperty
C#
public static readonly StylePropertyDefinition<double?, ParagraphProperties> LineSpacingProperty
C#
public static readonly StylePropertyDefinition<LineSpacingType?, ParagraphProperties> LineSpacingTypeProperty
C#
public static readonly StylePropertyDefinition<int?, ParagraphProperties> ListIdProperty
C#
public static readonly StylePropertyDefinition<int?, ParagraphProperties> ListLevelProperty
C#
public static readonly StylePropertyDefinition<int?, ParagraphProperties> OutlineLevelProperty
C#
public static readonly StylePropertyDefinition<double?, ParagraphProperties> RightIndentProperty
C#
public static readonly StylePropertyDefinition<double?, ParagraphProperties> SpacingAfterProperty
C#
public static readonly StylePropertyDefinition<double?, ParagraphProperties> SpacingBeforeProperty
C#
public static readonly StylePropertyDefinition<bool?, ParagraphProperties> SuppressLineNumbersProperty
C#
public static readonly StylePropertyDefinition<RadTextAlignment?, ParagraphProperties> TextAlignmentProperty
C#
public static readonly StylePropertyDefinition<ThemeColorsEnum?, ParagraphProperties> ThemeBackgroundProperty
C#
public static readonly StylePropertyDefinition<string, ParagraphProperties> ThemeFillShadeProperty
C#
public static readonly StylePropertyDefinition<string, ParagraphProperties> ThemeFillTintProperty

Properties

C#
[XamlSerializable]
public bool AutomaticSpacingAfter { get; set; }

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

C#
[XamlSerializable]
public bool AutomaticSpacingBefore { get; set; }
Property Value:

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

Gets or sets the background.

C#
[XamlSerializable]
public Color Background { get; set; }
Property Value:

The background.

Gets or sets the information for revisions on this element.

C#
[XamlCompositePropertySerializable]
public DocumentElementRevisionInfo ElementRevisionInfo { get; set; }
Property Value:

The element revision information.

Gets or sets the first line indent.

C#
[XamlSerializable]
public double FirstLineIndent { get; set; }
Property Value:

The first line indent.

Gets or sets the flow direction.

C#
[XamlSerializable(FlowDirection.LeftToRight)]
public FlowDirection FlowDirection { get; set; }
Property Value:

A value of type FlowDirection.

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

C#
[XamlSerializable]
public double FontSize { get; set; }
Property Value:

The size of the font.

Gets or sets the hanging indent.

C#
public double HangingIndent { get; set; }
Property Value:

The hanging indent.

Gets a value indicating whether this instance has revisions.

C#
public bool HasRevisions { get; }
Property Value:

true if this instance has revisions; otherwise, false.

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

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

The inlines.

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

C#
public bool IsDeleted { get; }
Property Value:

true if this instance is deleted; otherwise, false.

Gets a value indicating whether this paragraph is empty.

C#
public bool IsEmpty { get; }
Property Value:

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

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

C#
public bool IsHeading { get; }
Property Value:

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

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

C#
public bool IsInList { get; }
Property Value:

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.

C#
public bool IsInserted { get; }
Property Value:

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.

C#
[XamlSerializable(true)]
public bool IsLineBreakingRuleEnabled { get; set; }

Gets or sets the left indent.

C#
[XamlSerializable]
public double LeftIndent { get; set; }
Property Value:

The left indent.

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

C#
[XamlSerializable]
public double LineSpacing { get; set; }
Property Value:

The line spacing.

C#
[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.

C#
[XamlSerializable(-1)]
public int ListId { get; set; }
Property Value:

The list identifier.

Gets or sets the list level.

C#
[XamlSerializable(0)]
public int ListLevel { get; set; }
Property Value:

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.

C#
[XamlSerializable(0)]
public int OutlineLevel { get; set; }
Property Value:

The outline level.

Gets or sets the right indent.

C#
[XamlSerializable]
public double RightIndent { get; set; }
Property Value:

The right indent.

C#
[XamlSerializable]
public double SpacingAfter { get; set; }

Gets or sets the spacing before the paragraph.

C#
[XamlSerializable]
public double SpacingBefore { get; set; }
Property Value:

The spacing before.

Gets or sets the value indicating whether the line numbering for the current Paragraph is suppressed.

C#
[XamlSerializable]
public bool SuppressLineNumbers { get; set; }
Property Value:

The line numbering.

Gets or sets the tab stops.

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

The tab stops.

Gets or sets the text alignment.

C#
[XamlSerializable]
public RadTextAlignment TextAlignment { get; set; }
Property Value:

A value of type RadTextAlignment.

Gets or sets the theme background.

C#
[XamlSerializable]
public ThemeColorsEnum ThemeBackground { get; set; }
Property Value:

The theme background.

Gets or sets the theme fill shade.

C#
[XamlSerializable]
public string ThemeFillShade { get; set; }
Property Value:

The theme fill shade.

Gets or sets the theme fill tint.

C#
[XamlSerializable]
public string ThemeFillTint { get; set; }
Property Value:

The theme fill tint.

Methods

Copies the properties from another Paragraph to the current instance.

C#
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)
Parameters:fromElementDocumentElement

The Paragraph to copy the properties from.

Overrides: DocumentElement.CopyPropertiesFromOverride(DocumentElement)

Creates a deep copy of the element.

C#
public override DocumentElement CreateDeepCopy()
Returns:

DocumentElement

The copied element.

Overrides: DocumentElement.CreateDeepCopy()

Creates a ParagraphLayoutBox for the element.

C#
public override LayoutBox CreateLayoutBox(DocumentStructureCollection documentCollection)
Parameters:documentCollectionDocumentStructureCollection

The document collection.

Returns:

LayoutBox

Overrides: DocumentElement.CreateLayoutBox(DocumentStructureCollection)

Creates a new Paragraph instance.

C#
protected override DocumentElement CreateNewElementInstance()
Returns:

DocumentElement

The new instance.

Overrides: DocumentElement.CreateNewElementInstance()

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

C#
public virtual bool HasSameStyle(Paragraph other)
Parameters:otherParagraph

The other.

Returns:

bool

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

Called when a DocumentElement is removed.

C#
protected override void OnRemoved()

Overrides: DocumentElement.OnRemoved()

Called after the style of a document element has been changed.

C#
protected override void OnStyleChanged()

Overrides: DocumentElement.OnStyleChanged()

Called before the style of a document element changes.

C#
protected override void OnStyleChanging()

Overrides: DocumentElement.OnStyleChanging()

Called when TabStops collection changes.

C#
protected virtual void OnTabStopsChanged()

Removes the paragraph from a list.

C#
public void RemoveFromList()

Events

Occurs when the TabStops collection changes.

C#
public event EventHandler TabStopsChanged