ParagraphProperties
Represents the properties that define the appearance and formatting of a paragraph in a document.
Definition
Namespace:Telerik.Windows.Documents.Model.Styles
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class ParagraphProperties : DocumentElementPropertiesBase, IElementWithStyle
Inheritance: objectDocumentElementPropertiesBaseParagraphProperties
Implements:
Inherited Members
Constructors
Properties
Gets or sets the automatic spacing value to apply after the paragraph.
[XamlSerializable]
public bool AutomaticSpacingAfter { get; set; }
The automatic spacing value in units defined by the parent document.
Gets or sets the automatic spacing before a paragraph.
[XamlSerializable]
public bool AutomaticSpacingBefore { get; set; }
A value that specifies the amount of automatic spacing before the paragraph. The default value is determined by the paragraph's style settings.
Background
Color
Gets or sets the background properties of the paragraph.
[XamlSerializable]
public Color Background { get; set; }
The background properties that define the appearance of the paragraph's background.
Gets or sets the indent of the first line of the paragraph.
[XamlSerializable]
public double FirstLineIndent { get; set; }
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.
[XamlSerializable]
public FlowDirection FlowDirection { get; set; }
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.
[XamlSerializable]
public bool IsLineBreakingRuleEnabled { get; set; }
A boolean value; true if the line breaking rule is enabled; otherwise, false.
Gets or sets the left indent of the paragraph properties.
[XamlSerializable]
public double LeftIndent { get; set; }
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.
[XamlSerializable]
public double LineSpacing { get; set; }
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.
[XamlSerializable]
public LineSpacingType LineSpacingType { get; set; }
Gets or sets the identifier for the list associated with the paragraph properties.
[XamlSerializable(-1)]
public int ListId { get; set; }
The unique identifier of the list that the paragraph belongs to.
Represents the list level properties for a paragraph in the document model.
[XamlSerializable(0)]
public int ListLevel { get; set; }
Gets or sets the outline level of the paragraph properties.
[XamlSerializable(0)]
public int OutlineLevel { get; set; }
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.
[XamlSerializable]
public double RightIndent { get; set; }
A float value representing the right indent in unit of measurement, typically in points.
Gets or sets the spacing that follows a paragraph.
[XamlSerializable]
public double SpacingAfter { get; set; }
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.
[XamlSerializable]
public double SpacingBefore { get; set; }
A double representing the spacing in points. The default value is 0.
Gets the collection of tab stops defined for the paragraph.
[XamlCompositePropertySerializable]
public TabStopCollection TabStops { get; set; }
Gets or sets the text alignment for the paragraph.
[XamlSerializable]
public RadTextAlignment TextAlignment { get; set; }
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.
[XamlSerializable(ThemeColorsEnum.none)]
public ThemeColorsEnum ThemeBackground { get; set; }
The theme background properties associated with the paragraph.
Gets or sets the theme fill shade for the paragraph properties.
[XamlSerializable]
public string ThemeFillShade { get; set; }
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.
[XamlSerializable]
public string ThemeFillTint { get; set; }
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.
public override void CopyPropertiesFrom(DocumentElementPropertiesBase fromProperties)
The DocumentElementPropertiesBase instance from which to copy properties.
Overrides:
protected override DocumentElementPropertiesBase CreateInstance()
Overrides:
protected override void InitProperties()
Overrides:
protected virtual void OnTabStopsChanged()
protected override void ValidateStyleType(StyleDefinition value)
Overrides:
Events
public event EventHandler TabStopsChanged