ClassParagraphProperties
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
ParagraphProperties(DocumentElement)
Declaration
public ParagraphProperties(DocumentElement owner)
Parameters
owner
ParagraphProperties(StyleDefinition)
Declaration
public ParagraphProperties(StyleDefinition owner)
Parameters
owner
Properties
AutomaticSpacingAfter
Gets or sets the automatic spacing value to apply after the paragraph.
Declaration
[XamlSerializable]
public bool AutomaticSpacingAfter { get; set; }
Property Value
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
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
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
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
FlowDirection
Specifies the flow direction as a value of the 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
A boolean value; true if the line breaking rule is enabled; otherwise, false.
LeftIndent
Gets or sets the left indent of the paragraph properties.
Declaration
[XamlSerializable]
public double LeftIndent { get; set; }
Property Value
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
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
ListId
Gets or sets the identifier for the list associated with the paragraph properties.
Declaration
[XamlSerializable(-1)]
public int ListId { get; set; }
Property Value
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
OutlineLevel
Gets or sets the outline level of the paragraph properties.
Declaration
[XamlSerializable(0)]
public int OutlineLevel { get; set; }
Property Value
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
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
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.
TabStops
Gets the collection of tab stops defined for the paragraph.
Declaration
[XamlCompositePropertySerializable]
public TabStopCollection TabStops { get; set; }
Property Value
TextAlignment
Gets or sets the text alignment for the paragraph.
Declaration
[XamlSerializable]
public RadTextAlignment TextAlignment { get; set; }
Property Value
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(ThemeColorsEnum.none)]
public ThemeColorsEnum ThemeBackground { get; set; }
Property Value
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
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
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
fromProperties
The DocumentElementPropertiesBase instance from which to copy properties.
Overrides
CreateInstance()
Declaration
protected override DocumentElementPropertiesBase CreateInstance()
Returns
Overrides
InitProperties()
Declaration
protected override void InitProperties()
Overrides
OnTabStopsChanged()
Declaration
protected virtual void OnTabStopsChanged()
ValidateStyleType(StyleDefinition)
Declaration
protected override void ValidateStyleType(StyleDefinition value)
Parameters
value
Overrides