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

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

Definition

Constructors

C#
public ParagraphProperties(DocumentElement owner)
Parameters:ownerDocumentElement
C#
public ParagraphProperties(StyleDefinition owner)
Parameters:ownerStyleDefinition

Properties

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

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

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

Gets or sets the automatic spacing before a paragraph.

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

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

Gets or sets the background properties of the paragraph.

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

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

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

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

A value representing the first line indent in measurement units.

FlowDirection

FlowDirection

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

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

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

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

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

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

Gets or sets the left indent of the paragraph properties.

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

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

Gets or sets the line spacing for the paragraph properties.

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

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

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

C#
[XamlSerializable]
public LineSpacingType LineSpacingType { get; set; }

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

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

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

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

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

Gets or sets the outline level of the paragraph properties.

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

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

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.

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

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

Gets or sets the spacing that follows a paragraph.

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

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

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.

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

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

Gets the collection of tab stops defined for the paragraph.

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

Gets or sets the text alignment for the paragraph.

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

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

Gets or sets the theme background properties for a paragraph.

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

The theme background properties associated with the paragraph.

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

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

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

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

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

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

Methods

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

C#
public override void CopyPropertiesFrom(DocumentElementPropertiesBase fromProperties)
Parameters:fromPropertiesDocumentElementPropertiesBase

The DocumentElementPropertiesBase instance from which to copy properties.

Overrides: DocumentElementPropertiesBase.CopyPropertiesFrom(DocumentElementPropertiesBase)

C#
protected override DocumentElementPropertiesBase CreateInstance()
Returns:

DocumentElementPropertiesBase

Overrides: DocumentElementPropertiesBase.CreateInstance()

C#
protected override void InitProperties()

Overrides: DocumentElementPropertiesBase.InitProperties()

C#
protected virtual void OnTabStopsChanged()
C#
protected override void ValidateStyleType(StyleDefinition value)
Parameters:valueStyleDefinition

Overrides: DocumentElementPropertiesBase.ValidateStyleType(StyleDefinition)

Events

C#
public event EventHandler TabStopsChanged