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
editorMetaEditorMetadataEditor 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
editorMetaEditorMetadataEditor metadata.
underlyingTypeTypeType 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
editorTypeTypeEditor 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
TEditor type.
GetEditorGroup(Editor)
Gets the user-friendly name of the editor group.
public string GetEditorGroup(Editor editor)
Parameters
editorEditorEditor 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
editorTypeTypeEditor 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
editorEditorEditor 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
editorTypeTypeEditor 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
editorTypeTypeEditor 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
editorEditorEditor 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
editorMetaEditorMetadataEditor 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
editorTypeTypeEditor 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
editorTypeTypeEditor 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
dataTypeTypeData 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
dataTypeTypeData type.
storageint?Indicates how much storage is required for holding field value.
Returns
- Type
Editor type.