StyleReferenceField
Represents a field in a style reference that can be used to apply styles to document elements.
Definition
Namespace:Telerik.Windows.Documents.Model
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class StyleReferenceField : CodeBasedField, ISupportInitialize
Inheritance: objectFieldCodeBasedFieldStyleReferenceField
Implements:
Inherited Members
Constructors
public StyleReferenceField()
Fields
public static readonly string InvalidStyleNameError
public static readonly string NoPrevParagraphWithSuchStyleNameError
Gets or sets the name of the style associated with the StyleReferenceField.
public static readonly FieldPropertyDefinition StyleNameProperty
The name of the style as a string.
Properties
Gets the name of the field type.
public override string FieldTypeName { get; }
Overrides:
Determines whether the bullet should be displayed for the specified style reference field.
[XamlSerializable]
public bool ShouldDisplayBullet { get; set; }
Methods
Builds the field-specific parts of the code fragment, using the current CodeBuilder.
protected override void BuildCodeOverride()
Overrides:
Copies all properties from another field of the same type.
public override void CopyPropertiesFrom(Field fromField)
The other field, which has to be of the same type as the current instance.
Overrides:
Copies the field-specific properties from a FieldCodeExpression.
protected override void CopyPropertiesFromCodeExpression(FieldCodeExpression fieldCodeExpression)
The field code expression.
Overrides:
Creates a new instance of the current field class.
Builds the result fragment of the field.
protected override DocumentFragment GetResultFragment()
The result fragment.
Overrides: