View Source
Interface IDataValueEditor
Represents an editor for editing data values.
Assembly: Umbraco.Core.dll
Syntax
public interface IDataValueEditor
Properties
View Source
IsReadOnly
Gets a value indicating whether the edited value is read-only.
Declaration
Property Value
Type |
Description |
System.Boolean |
|
View Source
SupportsReadOnly
Gets a value indicating whether the IDataValueEditor supports readonly mode
Declaration
virtual bool SupportsReadOnly { get; }
Property Value
Type |
Description |
System.Boolean |
|
View Source
Validators
Gets the validators to use to validate the edited value.
Declaration
List<IValueValidator> Validators { get; }
Property Value
View Source
ValueType
Gets the type of the value.
Declaration
string ValueType { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
View Source
Declaration
virtual IEnumerable<Guid> ConfiguredElementTypeKeys()
Returns
Type |
Description |
IEnumerable<Guid> |
|
View Source
ConvertDbToString(IPropertyType, Object)
Declaration
string ConvertDbToString(IPropertyType propertyType, object value)
Parameters
Type |
Name |
Description |
IPropertyType |
propertyType |
|
System.Object |
value |
|
Returns
Type |
Description |
System.String |
|
View Source
ConvertDbToXml(IProperty, Boolean)
Used for serializing an IContent item for packaging
Declaration
IEnumerable<XElement> ConvertDbToXml(IProperty property, bool published)
Parameters
Type |
Name |
Description |
IProperty |
property |
|
System.Boolean |
published |
|
Returns
Type |
Description |
IEnumerable<System.Xml.Linq.XElement> |
|
View Source
ConvertDbToXml(IPropertyType, Object)
Used for serializing an IContent item for packaging
Declaration
XNode ConvertDbToXml(IPropertyType propertyType, object value)
Parameters
Type |
Name |
Description |
IPropertyType |
propertyType |
|
System.Object |
value |
|
Returns
Type |
Description |
System.Xml.Linq.XNode |
|
View Source
FromEditor(ContentPropertyData, Object)
Converts a value posted by the editor to a property value.
Declaration
object FromEditor(ContentPropertyData editorValue, object currentValue)
Parameters
Returns
Type |
Description |
System.Object |
|
View Source
ToEditor(IProperty, String, String)
Converts a property value to a value for the editor.
Declaration
object ToEditor(IProperty property, string culture = null, string segment = null)
Parameters
Type |
Name |
Description |
IProperty |
property |
|
System.String |
culture |
|
System.String |
segment |
|
Returns
Type |
Description |
System.Object |
|
View Source
Validate(Object, Boolean, String)
Validates a property value.
Declaration
IEnumerable<ValidationResult> Validate(object value, bool required, string format)
Parameters
Type |
Name |
Description |
System.Object |
value |
The property value.
|
System.Boolean |
required |
A value indicating whether the property value is required.
|
System.String |
format |
A specific format (regex) that the property value must respect.
|
Returns
Type |
Description |
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> |
|