ClassStyleReferenceField
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
StyleReferenceField()
Declaration
public StyleReferenceField()
Fields
InvalidStyleNameError
Declaration
public static readonly string InvalidStyleNameError
Field Value
NoPrevParagraphWithSuchStyleNameError
Declaration
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Prev")]
public static readonly string NoPrevParagraphWithSuchStyleNameError
Field Value
StyleNameProperty
Gets or sets the name of the style associated with the StyleReferenceField.
Declaration
public static readonly FieldPropertyDefinition StyleNameProperty
Field Value
The name of the style as a string.
Properties
FieldTypeName
Gets the name of the field type.
Declaration
public override string FieldTypeName { get; }
Property Value
Overrides
ShouldDisplayBullet
Determines whether the bullet should be displayed for the specified style reference field.
Declaration
[XamlSerializable]
public bool ShouldDisplayBullet { get; set; }
Property Value
Methods
BuildCodeOverride()
Builds the field-specific parts of the code fragment, using the current CodeBuilder.
Declaration
protected override void BuildCodeOverride()
Overrides
CopyPropertiesFrom(Field)
Copies all properties from another field of the same type.
Declaration
public override void CopyPropertiesFrom(Field fromField)
Parameters
fromField
The other field, which has to be of the same type as the current instance.
Overrides
CopyPropertiesFromCodeExpression(FieldCodeExpression)
Copies the field-specific properties from a FieldCodeExpression.
Declaration
protected override void CopyPropertiesFromCodeExpression(FieldCodeExpression fieldCodeExpression)
Parameters
fieldCodeExpression
The field code expression.
Overrides
CreateInstance()
Creates a new instance of the current field class.
Declaration
public override Field CreateInstance()
Returns
The new field instance.
Overrides
GetResultFragment()
Builds the result fragment of the field.
Declaration
protected override DocumentFragment GetResultFragment()
Returns
The result fragment.
Overrides