Class
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:

cs-api-definition
public class ParagraphProperties : DocumentElementPropertiesBase, IElementWithStyle

Inheritance: objectDocumentElementPropertiesBaseParagraphProperties

Implements: IElementWithStyle

Inherited Members DocumentElementPropertiesBase.GetStyleProperty(IStylePropertyDefinition)DocumentElementPropertiesBase.GetStyleProperty(string)DocumentElementPropertiesBase.MergePropertiesWith(DocumentElementPropertiesBase)DocumentElementPropertiesBase.ToString()DocumentElementPropertiesBase.ClearProperties()DocumentElementPropertiesBase.OnStylePropertyChangedOverride(StylePropertyChangeEventArgs)DocumentElementPropertiesBase.OnStyleChanged()DocumentElementPropertiesBase.OnStyleChanging()DocumentElementPropertiesBase.StylePropertiesDocumentElementPropertiesBase.StyleNameDocumentElementPropertiesBase.OriginalStyleNameDocumentElementPropertiesBase.StyleDocumentElementPropertiesBase.HasRevisionsDocumentElementPropertiesBase.RevisionInfoDocumentElementPropertiesBase.OriginalProperties

Constructors

ParagraphProperties(DocumentElement)

Declaration

cs-api-definition
public ParagraphProperties(DocumentElement owner)

Parameters

owner

DocumentElement

ParagraphProperties(StyleDefinition)

Declaration

cs-api-definition
public ParagraphProperties(StyleDefinition owner)

Parameters

owner

StyleDefinition

Properties

AutomaticSpacingAfter

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

Declaration

cs-api-definition
[XamlSerializable]
public bool AutomaticSpacingAfter { get; set; }

Property Value

bool

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

AutomaticSpacingBefore

Gets or sets the automatic spacing before a paragraph.

Declaration

cs-api-definition
[XamlSerializable]
public bool AutomaticSpacingBefore { get; set; }

Property Value

bool

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

cs-api-definition
[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

cs-api-definition
[XamlSerializable]
public double FirstLineIndent { get; set; }

Property Value

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

cs-api-definition
[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

cs-api-definition
[XamlSerializable]
public bool IsLineBreakingRuleEnabled { get; set; }

Property Value

bool

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

cs-api-definition
[XamlSerializable]
public double LeftIndent { get; set; }

Property Value

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

cs-api-definition
[XamlSerializable]
public double LineSpacing { get; set; }

Property Value

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

cs-api-definition
[XamlSerializable]
public LineSpacingType LineSpacingType { get; set; }

Property Value

LineSpacingType

ListId

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

Declaration

cs-api-definition
[XamlSerializable(-1)]
public int ListId { get; set; }

Property Value

int

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

cs-api-definition
[XamlSerializable(0)]
public int ListLevel { get; set; }

Property Value

int

OutlineLevel

Gets or sets the outline level of the paragraph properties.

Declaration

cs-api-definition
[XamlSerializable(0)]
public int OutlineLevel { get; set; }

Property Value

int

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

cs-api-definition
[XamlSerializable]
public double RightIndent { get; set; }

Property Value

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

cs-api-definition
[XamlSerializable]
public double SpacingAfter { get; set; }

Property Value

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

cs-api-definition
[XamlSerializable]
public double SpacingBefore { get; set; }

Property Value

double

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

TabStops

Gets the collection of tab stops defined for the paragraph.

Declaration

cs-api-definition
[XamlCompositePropertySerializable]
public TabStopCollection TabStops { get; set; }

Property Value

TabStopCollection

TextAlignment

Gets or sets the text alignment for the paragraph.

Declaration

cs-api-definition
[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

cs-api-definition
[XamlSerializable(ThemeColorsEnum.none)]
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

cs-api-definition
[XamlSerializable]
public string ThemeFillShade { get; set; }

Property Value

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

cs-api-definition
[XamlSerializable]
public string ThemeFillTint { get; set; }

Property Value

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

cs-api-definition
public override void CopyPropertiesFrom(DocumentElementPropertiesBase fromProperties)

Parameters

fromProperties

DocumentElementPropertiesBase

The DocumentElementPropertiesBase instance from which to copy properties.

Overrides DocumentElementPropertiesBase.CopyPropertiesFrom(DocumentElementPropertiesBase)

CreateInstance()

Declaration

cs-api-definition
protected override DocumentElementPropertiesBase CreateInstance()

Returns

DocumentElementPropertiesBase

Overrides DocumentElementPropertiesBase.CreateInstance()

InitProperties()

Declaration

cs-api-definition
protected override void InitProperties()

Overrides DocumentElementPropertiesBase.InitProperties()

OnTabStopsChanged()

Declaration

cs-api-definition
protected virtual void OnTabStopsChanged()

ValidateStyleType(StyleDefinition)

Declaration

cs-api-definition
protected override void ValidateStyleType(StyleDefinition value)

Parameters

value

StyleDefinition

Overrides DocumentElementPropertiesBase.ValidateStyleType(StyleDefinition)

Events

TabStopsChanged

Declaration

cs-api-definition
public event EventHandler TabStopsChanged

Event Value

EventHandler