November Happy Hour will be moved to Thursday December 5th.

Class NumericEditorDescriptor

Base class for all numeric type's editor descriptor

Namespace: EPiServer.Shell.ObjectEditing.EditorDescriptors
Assembly: EPiServer.Shell.dll
Version: 9.12.2
Syntax
public abstract class NumericEditorDescriptor : EditorDescriptor, IMetadataExtender, IMetadataHandler

Constructors

NumericEditorDescriptor(Object, Object)

Initializes a new instance of the NumericEditorDescriptor class.

Declaration
protected NumericEditorDescriptor(object min, object max)
Parameters
Type Name Description
System.Object min
System.Object max

NumericEditorDescriptor(Object, Object, Int32)

Initializes a new instance of the NumericEditorDescriptor class.

Declaration
protected NumericEditorDescriptor(object min, object max, int significantDigits)
Parameters
Type Name Description
System.Object min
System.Object max
System.Int32 significantDigits

Properties

DefaultValue

Gets or sets the default binding value.

Declaration
public override object DefaultValue { get; set; }
Property Value
Type Description
System.Object

The default binding value.

Overrides

Methods

ModifyMetadata(ExtendedMetadata, IEnumerable<Attribute>)

Modifies the metadata, adding any custom data the client needs.

Declaration
public override void ModifyMetadata(ExtendedMetadata metadata, IEnumerable<Attribute> attributes)
Parameters
Type Name Description
ExtendedMetadata metadata

The metadata.

System.Collections.Generic.IEnumerable<System.Attribute> attributes

The custom attributes attached to the model class

Overrides
Remarks

This method should only be overriden when you need the entire metedata object to work with. Otherwise, metadata properties should be set by setting the corresponding properties in the editor concrete descriptors' constructor. Also be aware that modifying metadata object will overwrite all data annotation attributes used in model class.

Implements

Extension Methods