Try our conversational search powered by Generative AI!

Interface IPropertyControlFactory

Factory responsible for registration and creation of web controls for PropertyData instances.

Namespace: EPiServer.Core
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public interface IPropertyControlFactory

Methods

CreatePropertyControl(PropertyData)

Creates an IPropertyControl for a given PropertyData.

Declaration
IPropertyControl CreatePropertyControl(PropertyData propertyData)
Parameters
Type Name Description
PropertyData propertyData

The PropertyData.

Returns
Type Description
IPropertyControl

A IPropertyControl that can be used to render an user interface for the PropertyData.

IsRegistered<TPropertyData>()

Check if a PropertyData type has registered controls.

Declaration
bool IsRegistered<TPropertyData>()
    where TPropertyData : PropertyData
Returns
Type Description
System.Boolean
Type Parameters
Name Description
TPropertyData

The PropertyData

Register<TPropertyData>(Func<IPropertyControl>)

Registers an IPropertyControl factory with a PropertyData type.

Declaration
IPropertyControlFactory Register<TPropertyData>(Func<IPropertyControl> controlFactory)
    where TPropertyData : PropertyData
Parameters
Type Name Description
System.Func<IPropertyControl> controlFactory

The control factory to register with the property data instance

Returns
Type Description
IPropertyControlFactory
Type Parameters
Name Description
TPropertyData

The PropertyData

Register<TPropertyData, TPropertyControl>()

Registers an IPropertyControl with a PropertyData type.

Declaration
IPropertyControlFactory Register<TPropertyData, TPropertyControl>()
    where TPropertyData : PropertyData where TPropertyControl : IPropertyControl
Returns
Type Description
IPropertyControlFactory
Type Parameters
Name Description
TPropertyData

The PropertyData

TPropertyControl

The property control

Unregister<TPropertyData>()

Unregister a PropertyData type.

Declaration
IPropertyControlFactory Unregister<TPropertyData>()
    where TPropertyData : PropertyData
Returns
Type Description
IPropertyControlFactory
Type Parameters
Name Description
TPropertyData

The PropertyData

Extension Methods