Show / Hide Table of Contents

Class SingleImageEditorDescriptor

Registers editor for single images

Inheritance
object
EditorDescriptor
SingleImageEditorDescriptor
Implements
IMetadataExtender
IMetadataHandler
Inherited Members
EditorDescriptor.SetEditorConfiguration(ExtendedMetadata)
EditorDescriptor.SetOverlayConfiguration(ExtendedMetadata)
EditorDescriptor.AllowedTypes
EditorDescriptor.AllowedTypesFormatSuffix
EditorDescriptor.DndSourcePropertyName
EditorDescriptor.DndTargetPropertyName
EditorDescriptor.ClientEditingClass
EditorDescriptor.ClientEditingPackage
EditorDescriptor.LayoutClass
EditorDescriptor.DefaultValue
EditorDescriptor.EditorConfiguration
EditorDescriptor.OverlayConfiguration
EditorDescriptor.SelectionFactoryType
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: AdaptiveImages.Shell
Assembly: AdaptiveImages.dll
Syntax
[EditorDescriptorRegistration(TargetType = typeof(SingleImage), EditorDescriptorBehavior = EditorDescriptorBehavior.OverrideDefault)]
public class SingleImageEditorDescriptor : EditorDescriptor, IMetadataExtender, IMetadataHandler

Constructors

SingleImageEditorDescriptor(IContentLoader, IAddonSettings)

Creates an empty instance with required dependencies

Declaration
public SingleImageEditorDescriptor(IContentLoader contentLoader, IAddonSettings addonSettings)
Parameters
Type Name Description
IContentLoader contentLoader

Necessary to support localized images

IAddonSettings addonSettings

Methods

ModifyMetadata(ExtendedMetadata, IEnumerable<Attribute>)

Configure editor for single image properties and pass along any validation settings

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

Implements

EPiServer.Shell.ObjectEditing.IMetadataExtender
EPiServer.Shell.ObjectEditing.IMetadataHandler

Extension Methods

ImageExtensions.GetCultureSpecificImageAttribute<TContent, TProperty>(TContent, Expression<Func<TContent, TProperty>>)
ImageExtensions.GetImageConstraints<TParent>(TParent, string)
ImageExtensions.GetImageConstraints<TParent, TProperty>(TParent, Expression<Func<TParent, TProperty>>)
ImageExtensions.GetImageRenderSettings<TParent, TProperty>(TParent, Expression<Func<TParent, TProperty>>)
ImageExtensions.GetImageRenderSettings<TParent, TProperty>(TParent, Expression<Func<TParent, TProperty>>, FormFactor)
ImageExtensions.GetProportionsConstraint<TParent>(TParent, string)
ImageExtensions.GetProportionsConstraint<TParent>(TParent, string, FormFactor)
ImageExtensions.GetProportionsConstraint<TParent, TProperty>(TParent, Expression<Func<TParent, TProperty>>)
ImageExtensions.GetRequiredImageAttribute<TContent, TProperty>(TContent, Expression<Func<TContent, TProperty>>)
ImageExtensions.GetSizeConstraint<TContent, TProperty>(TContent, Expression<Func<TContent, TProperty>>)
☀
☾
In this article
Back to top
Documentation applies to: Adaptive Images 2.x
☀
☾