Class EditorManager
- Namespace
- Dynamicweb.Content.Items.Editors
- Assembly
- Dynamicweb.dll
Represents an editor manager. This class cannot be inherited.
- Inheritance
-
Editor
Manager
- Inherited Members
Properties
Current
Gets the current instance of the editor manager.
Property Value
Methods
ConvertValue(ItemField, object?)
Converts the value of a given field to its appropriate CLR representation.
Parameters
Returns
- object
Field value.
ConvertValue(string, object?, ItemEntry)
Converts the value of a given field to its appropriate CLR representation.
Parameters
Returns
- object
Field value.
ConvertValue(string, object?, string)
Converts the value of a given field to its appropriate CLR representation.
Parameters
Returns
- object
Field value.
CreateEditor(EditorMetadata)
Creates an instance of the specified editor.
Parameters
editorMeta
EditorMetadata Editor metadata.
Returns
- Editor
An instance of the specified editor.
CreateEditor(EditorMetadata, Type?)
Creates an instance of the specified editor.
Parameters
editorMeta
EditorMetadata Editor metadata.
underlyingType
TypeType of the field.
Returns
- Editor
An instance of the specified editor.
CreateEditor(Type)
Creates an instance of the specified editor.
Parameters
editorType
TypeEditor type.
Returns
- Editor
An instance of the specified editor.
CreateEditor<T>()
Creates an instance of the specified editor.
Returns
- T
An instance of the specified editor.
Type Parameters
T
Editor type.
GetEditorGroup(Editor)
Gets the user-friendly name of the editor group.
Parameters
editor
EditorEditor instance.
Returns
- string
The user-friendly name of the editor group.
GetEditorGroup(Type)
Gets the user-friendly name of the editor group.
Parameters
editorType
TypeEditor type.
Returns
- string
The user-friendly name of the editor group.
GetEditorName(Editor)
Gets the user-friendly name of the editor.
Parameters
editor
EditorEditor instance.
Returns
- string
The user-friendly name of the editor.
GetEditorName(Type)
Gets the user-friendly name of the editor.
Parameters
editorType
TypeEditor type.
Returns
- string
The user-friendly name of the editor.
GetEditorTypes()
Returns all editor types.
Returns
- IEnumerable<Type>
All editor types.
IsEditableListEditor(Type)
Returns value indicating whether the given editor is a list-based editor whose values can be edited dynamically.
Parameters
editorType
TypeEditor type.
Returns
- bool
Value indicating whether the given editor is a list-based editor whose values can be edited dynamically.
IsListEditor(Editor)
Returns value indicating whether the given editor is a list-based editor.
Parameters
editor
EditorEditor instace.
Returns
- bool
Value indicating whether the given editor is a list-based editor.
IsListEditor(EditorMetadata)
Returns value indicating whether the given editor is a list-based editor.
Parameters
editorMeta
EditorMetadata Editor metadata.
Returns
- bool
Value indicating whether the given editor is a list-based editor.
IsListEditor(Type)
Returns value indicating whether the given editor is a list-based editor.
Parameters
editorType
TypeEditor type.
Returns
- bool
Value indicating whether the given editor is a list-based editor.
IsPlainTextEditor(Type)
Returns value indicating whether the given editor is a plain text editor.
Parameters
editorType
TypeEditor type.
Returns
- bool
Value indicating whether the given editor is a plain text editor.
SelectEditorType(Type)
Selects the best matching editor type for a given data type.
Parameters
dataType
TypeData type.
Returns
- Type
Editor type.
SelectEditorType(Type, int?)
Selects the best matching editor type for a given data type.
Parameters
dataType
TypeData type.
storage
int?Indicates how much storage is required for holding field value.
Returns
- Type
Editor type.