Class CodeBasedFieldFactory
CodeBasedFieldFactory contains methods for the construction of fields.
Inheritance
Inherited Members
Namespace: Telerik.WinForms.Documents.Model
Assembly: Telerik.WinControls.RichTextEditor.dll
Syntax
public static class CodeBasedFieldFactory
Methods
CreateFromFieldCode(String)
Creates a field from its field code.
Declaration
public static CodeBasedField CreateFromFieldCode(string fieldCode)
Parameters
System.String
fieldCode
The field code. |
Returns
CodeBasedField
|
CreateFromFieldFragment(DocumentFragment)
Creates a field from a document fragment, containing the field code.
Declaration
public static CodeBasedField CreateFromFieldFragment(DocumentFragment documentFragment)
Parameters
DocumentFragment
documentFragment
The document fragment, containing the field code. |
Returns
CodeBasedField
|
RegisterFieldType(String, Func<CodeBasedField>)
Registers the field type and its corresponding factory method.
Declaration
public static void RegisterFieldType(string fieldType, Func<CodeBasedField> createFieldFunc)
Parameters
System.String
fieldType
The field type name, which can be found in FieldTypeName. |
System.Func<CodeBasedField>
createFieldFunc
The factory method. |
RegisterFieldType(CodeBasedField)
Registers the field type in the factory.
Declaration
public static void RegisterFieldType(CodeBasedField field)
Parameters
CodeBasedField
field
The field whose type will be registered. |