Class EditorManager
- Namespace
- Dynamicweb.Content.Items.Editors
- Assembly
- Dynamicweb.dll
Represents an editor manager. This class cannot be inherited.
public sealed class EditorManager
- Inheritance
-
EditorManager
- Inherited Members
Properties
Current
Gets the current instance of the editor manager.
public static EditorManager Current { get; }
Property Value
Methods
ConvertValue(ItemField, object)
Converts the value of a given field to its appropriate CLR representation.
public object ConvertValue(ItemField field, object value)
Parameters
Returns
- object
Field value.
ConvertValue(string, object, ItemEntry)
Converts the value of a given field to its appropriate CLR representation.
public object ConvertValue(string fieldName, object fieldValue, ItemEntry item)
Parameters
Returns
- object
Field value.
ConvertValue(string, object, string)
Converts the value of a given field to its appropriate CLR representation.
public object ConvertValue(string fieldName, object fieldValue, string itemSystemName)
Parameters
Returns
- object
Field value.
CreateEditor(EditorMetadata)
Creates an instance of the specified editor.
public Editor CreateEditor(EditorMetadata editorMeta)
Parameters
editorMeta
EditorMetadataEditor metadata.
Returns
- Editor
An instance of the specified editor.
CreateEditor(EditorMetadata, Type)
Creates an instance of the specified editor.
public Editor CreateEditor(EditorMetadata editorMeta, Type underlyingType)
Parameters
editorMeta
EditorMetadataEditor metadata.
underlyingType
TypeType of the field.
Returns
- Editor
An instance of the specified editor.
CreateEditor(Type)
Creates an instance of the specified editor.
public Editor CreateEditor(Type editorType)
Parameters
editorType
TypeEditor type.
Returns
- Editor
An instance of the specified editor.
CreateEditor<T>()
Creates an instance of the specified editor.
public T CreateEditor<T>() where T : 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.
public string GetEditorGroup(Editor editor)
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.
public string GetEditorGroup(Type editorType)
Parameters
editorType
TypeEditor type.
Returns
- string
The user-friendly name of the editor group.
GetEditorName(Editor)
Gets the user-friendly name of the editor.
public string GetEditorName(Editor editor)
Parameters
editor
EditorEditor instance.
Returns
- string
The user-friendly name of the editor.
GetEditorName(Type)
Gets the user-friendly name of the editor.
public string GetEditorName(Type editorType)
Parameters
editorType
TypeEditor type.
Returns
- string
The user-friendly name of the editor.
GetEditorTypes()
Returns all editor types.
public IEnumerable<Type> GetEditorTypes()
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.
public bool IsEditableListEditor(Type editorType)
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.
public bool IsListEditor(Editor 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.
public bool IsListEditor(EditorMetadata editorMeta)
Parameters
editorMeta
EditorMetadataEditor 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.
public bool IsListEditor(Type editorType)
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.
public bool IsPlainTextEditor(Type editorType)
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.
public Type SelectEditorType(Type dataType)
Parameters
dataType
TypeData type.
Returns
- Type
Editor type.
SelectEditorType(Type, int?)
Selects the best matching editor type for a given data type.
public Type SelectEditorType(Type dataType, int? storage)
Parameters
dataType
TypeData type.
storage
int?Indicates how much storage is required for holding field value.
Returns
- Type
Editor type.