New to Telerik UI for WinForms? Start a free 30-day trial

Displays content from the preceding paragraph with a specified style, or that paragraph's list label.

Definition

Constructors

Creates a style-reference field with its style-name property initialized.

C#
public StyleReferenceField()

Fields

Identifies the field-code token for style-reference fields.

C#
public static readonly string FieldType

Message returned when StyleName is empty.

C#
public static readonly string InvalidStyleNameError

Message returned when no preceding paragraph has the requested style.

C#
public static readonly string NoPrevParagraphWithSuchStyleNameError

Identifies the field-code property that stores the referenced paragraph style.

C#
public static readonly FieldPropertyDefinition StyleNameProperty

Properties

Gets the name of the field type.

C#
public override string FieldTypeName { get; }

Overrides: Field.FieldTypeName

Gets or sets whether the result is the preceding matching paragraph's list label instead of its content.

C#
[XamlSerializable]
public bool ShouldDisplayBullet { get; set; }

If the matching paragraph is not in a list, the result is 0.

Gets or sets the style to find before this field; numeric values from 1 through 9 select the corresponding heading style.

C#
[XamlSerializable]
public string StyleName { get; set; }

Methods

Builds the field-specific parts of the code fragment, using the current CodeBuilder.

C#
protected override void BuildCodeOverride()

Overrides: CodeBasedField.BuildCodeOverride()

Copies all properties from another field of the same type.

C#
public override void CopyPropertiesFrom(Field fromField)
Parameters:fromFieldField

The other field, which has to be of the same type as the current instance.

Overrides: CodeBasedField.CopyPropertiesFrom(Field)

Copies the field-specific properties from a FieldCodeExpression.

C#
protected override void CopyPropertiesFromCodeExpression(FieldCodeExpression fieldCodeExpression)
Parameters:fieldCodeExpressionFieldCodeExpression

The field code expression.

Overrides: CodeBasedField.CopyPropertiesFromCodeExpression(FieldCodeExpression)

Creates a new instance of the current field class.

C#
public override Field CreateInstance()
Returns:

Field

The new field instance.

Overrides: Field.CreateInstance()

Builds the result fragment of the field.

C#
protected override DocumentFragment GetResultFragment()
Returns:

DocumentFragment

The result fragment.

Overrides: Field.GetResultFragment()