Class Style
Establishes functionality to share style properties between different document elements.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Flow.Model.Styles
Assembly: Telerik.Windows.Documents.Flow.dll
Syntax
public class Style
Constructors
Style(String, StyleType)
Initializes a new instance of the Style class with corresponding style ID and style type.
Declaration
public Style(string id, StyleType type)
Parameters
System.String
id
The ID. |
StyleType
type
The type. |
Properties
BasedOnStyleId
Gets or sets the name of the based on style.
Declaration
public string BasedOnStyleId { get; set; }
Property Value
System.String
The name of the based on. |
CharacterProperties
Gets the character properties.
Declaration
public CharacterProperties CharacterProperties { get; }
Property Value
CharacterProperties
The character properties. |
Document
Gets the document to which the current style belongs to.
Declaration
public RadFlowDocument Document { get; }
Property Value
RadFlowDocument
The document. |
Id
Gets or sets the ID of the style.
Declaration
public string Id { get; set; }
Property Value
System.String
The ID. |
IsCustom
Gets or sets a value indicating if the current style is custom. The default value is
false
.
Declaration
public bool IsCustom { get; set; }
Property Value
System.Boolean
|
IsDefault
Gets or sets a value indicating if the current style is default.
Declaration
public bool IsDefault { get; set; }
Property Value
System.Boolean
The is default. |
IsPrimary
Gets or sets value indicating whether the style should be visible in any styles gallery.
Declaration
public bool IsPrimary { get; set; }
Property Value
System.Boolean
|
LinkedStyleId
Gets or sets the linked style ID.
This property can be set to Paragraph or Character style only. Paragraph style can be linked only to Character style and vice versa.
Declaration
public string LinkedStyleId { get; set; }
Property Value
System.String
The linked style ID. |
Name
Gets or sets the name which will represent the style in any UI. If this property is not set then the id of the style is returned.
Declaration
public string Name { get; set; }
Property Value
System.String
The name. |
NextStyleId
Gets or sets the next style id.
Declaration
public string NextStyleId { get; set; }
Property Value
System.String
The next style id. |
ParagraphProperties
Gets the paragraph properties.
Declaration
public ParagraphProperties ParagraphProperties { get; }
Property Value
ParagraphProperties
The paragraph properties. |
StyleType
Gets the type of the style.
Declaration
public StyleType StyleType { get; }
Property Value
StyleType
The type of the style. |
TableCellProperties
Gets the table cell properties.
Declaration
public TableCellProperties TableCellProperties { get; }
Property Value
TableCellProperties
The table cell properties. |
TableProperties
Gets the table properties.
Declaration
public TableProperties TableProperties { get; }
Property Value
TableProperties
The table properties. |
TableRowProperties
Gets the table row properties.
Declaration
public TableRowProperties TableRowProperties { get; }
Property Value
TableRowProperties
The table row properties. |
UIPriority
Gets or sets the UI priority of the style.
Declaration
public int UIPriority { get; set; }
Property Value
System.Int32
The UI priority. |
Methods
Clone()
GetPropertyValue(IStylePropertyDefinition)
Gets the property value.
Declaration
public object GetPropertyValue(IStylePropertyDefinition stylePropertyDefinition)
Parameters
IStylePropertyDefinition
stylePropertyDefinition
The style property definition. |
Returns
System.Object
|