Style
Defines a named set of formatting properties that can be reused across multiple document elements with inheritance support.
Definition
Namespace:Telerik.Documents.Flow.Model.Styles
Assembly:Telerik.Windows.Documents.Flow.dll
Syntax:
public class Style
Inheritance: objectStyle
Constructors
Properties
Gets or sets the style ID from which this style inherits formatting properties.
public string BasedOnStyleId { get; set; }
The name of the based on.
Gets the character formatting properties applied by this style to text runs.
public CharacterProperties CharacterProperties { get; }
The character properties.
Gets the document that owns this style, or null if the style has not been added to a document.
public RadFlowDocument Document { get; }
The document.
Gets or sets the unique identifier for this style; cannot be changed once the style is added to a document.
public string Id { get; set; }
The ID.
Gets or sets whether this style is user-defined rather than built-in; defaults to false. The default value is
false
.
public bool IsCustom { get; set; }
Gets or sets whether this style serves as the default for its type; cannot be changed once added to a document.
public bool IsDefault { get; set; }
The is default.
Gets or sets whether this style appears in the primary styles gallery in UI.
public bool IsPrimary { get; set; }
Gets or sets the linked style ID that pairs this paragraph style with a character style or vice versa.
This property can be set to Paragraph or Character style only. Paragraph style can be linked only to Character style and vice versa.
public string LinkedStyleId { get; set; }
The linked style ID.
Gets or sets the display name shown in UI; defaults to the style ID if not explicitly set.
public string Name { get; set; }
The name.
Gets or sets the style ID automatically applied to the next paragraph after pressing Enter.
public string NextStyleId { get; set; }
The next style id.
Gets the paragraph formatting properties applied by this style to paragraphs.
public ParagraphProperties ParagraphProperties { get; }
The paragraph properties.
Gets the category of document elements to which this style applies.
public StyleType StyleType { get; }
The type of the style.
Gets the table cell formatting properties; only populated for table styles.
public TableCellProperties TableCellProperties { get; }
The table cell properties.
Gets the table formatting properties; only populated for table styles.
public TableProperties TableProperties { get; }
The table properties.
Gets the table row formatting properties; only populated for table styles.
public TableRowProperties TableRowProperties { get; }
The table row properties.
Gets or sets the sort order priority for displaying this style in UI lists; lower values appear first.
public int UIPriority { get; set; }
The UI priority.
Methods
Creates a deep copy of this style with all properties and settings preserved.
Retrieves the resolved value of a style property by evaluating the inheritance chain.
public object GetPropertyValue(IStylePropertyDefinition stylePropertyDefinition)
The style property definition.
Returns: