FieldProperty
Stores a field property's literal value or a nested field whose result supplies that value.
Definition
Namespace:Telerik.WinForms.Documents.Model.Fields
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class FieldProperty
Inheritance: objectFieldProperty
Constructors
Registers this property with its owning field under the specified definition.
public FieldProperty(Field owner, FieldPropertyDefinition propertyDefinition)
The field that owns the property.
propertyDefinitionFieldPropertyDefinitionThe definition that identifies the property.
Properties
Gets the nested field that supplies this property's value, or null when the value is literal.
public Field Field { get; }
Gets whether this property is backed by a nested field rather than a literal string.
public bool IsNestedField { get; }
Gets the definition used to register this property with its owning field.
public FieldPropertyDefinition PropertyDefinition { get; }
Methods
Copies the stored literal value and deep-copies the nested field when the source contains one. Copying from a literal source does not clear a nested field already held by this instance.
public void CopyPropertiesFrom(FieldProperty other)
The property to copy.
Gets the literal value, or the result text produced by the nested field.
Replaces any literal value with a nested field and associates that field with the owner's document.
public void SetValue(Field fieldValue)
The field whose result supplies this property's value.
Sets the property from a parsed field-code argument, preserving nested fields as fields and other arguments as text. A null node clears the property to an empty string.
public void SetValue(IFieldArgumentNode node)
The parsed field-code argument.
Replaces any nested field with a literal value.