Class ParagraphProperties
Represents the properties that define the appearance and formatting of a paragraph in a document.
Inherited Members
Namespace: Telerik.Windows.Documents.Model.Styles
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class ParagraphProperties : DocumentElementPropertiesBase, IElementWithStyle
Constructors
ParagraphProperties()
Declaration
public ParagraphProperties()
ParagraphProperties(DocumentElement)
ParagraphProperties(StyleDefinition)
Properties
AutomaticSpacingAfter
Gets or sets the automatic spacing value to apply after the paragraph.
Declaration
[XamlSerializable]
public bool AutomaticSpacingAfter { get; set; }
Property Value
System.Boolean
The automatic spacing value in units defined by the parent document. |
AutomaticSpacingBefore
Gets or sets the automatic spacing before a paragraph.
Declaration
[XamlSerializable]
public bool AutomaticSpacingBefore { get; set; }
Property Value
System.Boolean
A value that specifies the amount of automatic spacing before the paragraph. The default value is determined by the paragraph's style settings. |
Background
Gets or sets the background properties of the paragraph.
Declaration
[XamlSerializable]
public Color Background { get; set; }
Property Value
System.Windows.Media.Color
The background properties that define the appearance of the paragraph's background. |
FirstLineIndent
Gets or sets the indent of the first line of the paragraph.
Declaration
[XamlSerializable]
public double FirstLineIndent { get; set; }
Property Value
System.Double
A value representing the first line indent in measurement units. |
FlowDirection
Gets or sets the flow direction of the paragraph properties, defining how text flows in the paragraph.
Declaration
[XamlSerializable]
public FlowDirection FlowDirection { get; set; }
Property Value
System.Windows.FlowDirection
Specifies the flow direction as a value of the System.Windows.FlowDirection enum. |
IsLineBreakingRuleEnabled
Gets or sets a value indicating whether the line breaking rule is enabled for the paragraph properties.
Declaration
[XamlSerializable]
public bool IsLineBreakingRuleEnabled { get; set; }
Property Value
System.Boolean
A boolean value; true if the line breaking rule is enabled; otherwise, false. |
KeepLines
Gets or sets a value indicating whether the paragraph should keep its lines together when paging. This property ensures that all lines of the paragraph are kept on the same page to prevent awkward breaks in content.
Declaration
[XamlSerializable]
public bool KeepLines { get; set; }
Property Value
System.Boolean
A boolean value where true indicates that the lines should be kept together and false indicates that they can be broken across pages. |
LeftIndent
Gets or sets the left indent of the paragraph properties.
Declaration
[XamlSerializable]
public double LeftIndent { get; set; }
Property Value
System.Double
A value representing the left indent, measured in units specified by the document's measurement system. |
LineSpacing
Gets or sets the line spacing for the paragraph properties.
Declaration
[XamlSerializable]
public double LineSpacing { get; set; }
Property Value
System.Double
A value representing the line spacing applied to the paragraph. The line spacing determines the vertical space between lines of text in a paragraph. |
LineSpacingType
Represents the line spacing type for paragraph properties in Telerik document model.
Declaration
[XamlSerializable]
public LineSpacingType LineSpacingType { get; set; }
Property Value
LineSpacingType
|
ListId
Gets or sets the identifier for the list associated with the paragraph properties.
Declaration
[XamlSerializable(-1)]
public int ListId { get; set; }
Property Value
System.Int32
The unique identifier of the list that the paragraph belongs to. |
ListLevel
Represents the list level properties for a paragraph in the document model.
Declaration
[XamlSerializable(0)]
public int ListLevel { get; set; }
Property Value
System.Int32
|
OutlineLevel
Gets or sets the outline level of the paragraph properties.
Declaration
[XamlSerializable(0)]
public int OutlineLevel { get; set; }
Property Value
System.Int32
The outline level of the paragraph, which determines its hierarchical position in the document structure. |
RightIndent
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.
Declaration
[XamlSerializable]
public double RightIndent { get; set; }
Property Value
System.Double
A float value representing the right indent in unit of measurement, typically in points. |
SpacingAfter
Gets or sets the spacing that follows a paragraph.
Declaration
[XamlSerializable]
public double SpacingAfter { get; set; }
Property Value
System.Double
The amount of spacing, in device-independent units (1/96th of an inch per unit), that is added after the paragraph. |
SpacingBefore
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.
Declaration
[XamlSerializable]
public double SpacingBefore { get; set; }
Property Value
System.Double
A System.Double representing the spacing in points. The default value is 0. |
SuppressLineNumbers
Declaration
[XamlSerializable]
public bool SuppressLineNumbers { get; set; }
Property Value
System.Boolean
|
TabStops
Gets the collection of tab stops defined for the paragraph.
Declaration
[XamlCompositePropertySerializable]
public TabStopCollection TabStops { get; set; }
Property Value
TabStopCollection
|
TextAlignment
Gets or sets the text alignment for the paragraph.
Declaration
[XamlSerializable]
public RadTextAlignment TextAlignment { get; set; }
Property Value
RadTextAlignment
A value of the RadTextAlignment enumeration that specifies the alignment of the text within the paragraph. |
ThemeBackground
Gets or sets the theme background properties for a paragraph.
Declaration
[XamlSerializable]
public ThemeColorsEnum ThemeBackground { get; set; }
Property Value
ThemeColorsEnum
The theme background properties associated with the paragraph. |
ThemeFillShade
Gets or sets the theme fill shade for the paragraph properties.
Declaration
[XamlSerializable]
public string ThemeFillShade { get; set; }
Property Value
System.String
A value representing the theme fill shade, which determines the shading color applied to the paragraph. |
ThemeFillTint
Gets or sets the tint value for the theme fill of the paragraph properties.
Declaration
[XamlSerializable]
public string ThemeFillTint { get; set; }
Property Value
System.String
A double value that represents the tint. This value modifies the theme color applied to the paragraph. |
Methods
CopyPropertiesFrom(DocumentElementPropertiesBase)
Copies the properties from the specified DocumentElementPropertiesBase instance to the current ParagraphProperties object.
Declaration
public override void CopyPropertiesFrom(DocumentElementPropertiesBase fromProperties)
Parameters
DocumentElementPropertiesBase
fromProperties
The DocumentElementPropertiesBase instance from which to copy properties. |
Overrides
CreateInstance()
Declaration
protected override DocumentElementPropertiesBase CreateInstance()
Returns
DocumentElementPropertiesBase
|
Overrides
InitProperties()
Declaration
protected override void InitProperties()
Overrides
OnTabStopsChanged()
Declaration
protected virtual void OnTabStopsChanged()
ValidateStyleType(StyleDefinition)
Declaration
protected override void ValidateStyleType(StyleDefinition value)
Parameters
StyleDefinition
value
|
Overrides
Events
TabStopsChanged
Declaration
public event EventHandler TabStopsChanged
Event Type
System.EventHandler
|