CodeBasedFieldFactory contains methods for the construction of fields.
Definition
Namespace:Telerik.Windows.Documents.Model
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
C#
public static class CodeBasedFieldFactory
Inheritance: objectCodeBasedFieldFactory
Methods
Creates a field from its field code.
C#
public static CodeBasedField CreateFromFieldCode(string fieldCode)
The field code.
Returns:Creates a field from a document fragment, containing the field code.
C#
public static CodeBasedField CreateFromFieldFragment(DocumentFragment documentFragment)
The document fragment, containing the field code.
Returns:Registers the field type in the factory.
C#
public static void RegisterFieldType(CodeBasedField field)
The field whose type will be registered.
Registers the field type and its corresponding factory method.
C#
public static void RegisterFieldType(string fieldType, Func<CodeBasedField> createFieldFunc)
The field type name, which can be found in FieldTypeName.
createFieldFuncFunc<CodeBasedField>The factory method.