Table of Contents

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

EditorManager

Methods

ConvertValue(ItemField, object)

Converts the value of a given field to its appropriate CLR representation.

public object ConvertValue(ItemField field, object value)

Parameters

field ItemField

Item field.

value object

Field value.

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

fieldName string

Field name.

fieldValue object

Field value.

item ItemEntry

Item instance.

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

fieldName string

Field name.

fieldValue object

Field value.

itemSystemName string

Item system name.

Returns

object

Field value.

CreateEditor(EditorMetadata)

Creates an instance of the specified editor.

public Editor CreateEditor(EditorMetadata editorMeta)

Parameters

editorMeta EditorMetadata

Editor 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 EditorMetadata

Editor metadata.

underlyingType Type

Type 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 Type

Editor 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 Editor

Editor 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 Type

Editor 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 Editor

Editor 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 Type

Editor 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 Type

Editor 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 Editor

Editor 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 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.

public bool IsListEditor(Type editorType)

Parameters

editorType Type

Editor 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 Type

Editor 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 Type

Data 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 Type

Data type.

storage int?

Indicates how much storage is required for holding field value.

Returns

Type

Editor type.

To top