StyleReferenceField
Displays content from the preceding paragraph with a specified style, or that paragraph's list label.
Definition
Namespace:Telerik.WinForms.Documents.Model
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class StyleReferenceField : CodeBasedField, ISupportInitialize
Inheritance: objectFieldCodeBasedFieldStyleReferenceField
Implements:
Inherited Members
Constructors
Creates a style-reference field with its style-name property initialized.
public StyleReferenceField()
Fields
Identifies the field-code token for style-reference fields.
public static readonly string FieldType
Message returned when StyleName is empty.
public static readonly string InvalidStyleNameError
Message returned when no preceding paragraph has the requested style.
public static readonly string NoPrevParagraphWithSuchStyleNameError
Identifies the field-code property that stores the referenced paragraph style.
public static readonly FieldPropertyDefinition StyleNameProperty
Properties
Gets the name of the field type.
public override string FieldTypeName { get; }
Overrides:
Gets or sets whether the result is the preceding matching paragraph's list label instead of its content.
[XamlSerializable]
public bool ShouldDisplayBullet { get; set; }
If the matching paragraph is not in a list, the result is
0.
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: