Class PropertyControlClassFactory
Used to change which IPropertyControl that is used to display an user interface for a PropertyData class. This class supports the EPiServer infrastructure and is not intended to be used directly from your code.
Inheritance
Inherited Members
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 9.12.2Syntax
public class PropertyControlClassFactory
Constructors
PropertyControlClassFactory()
Initializes a new instance of the PropertyControlClassFactory class. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public PropertyControlClassFactory()
Properties
Instance
Gets the global instance of PropertyControlClassFactory. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public static PropertyControlClassFactory Instance { get; }
Property Value
Type | Description |
---|---|
PropertyControlClassFactory | The global instance of PropertyControlClassFactory. |
PropertyDefinitionRepository
Gets or sets the property definition repository.
Declaration
public Injected<IPropertyDefinitionRepository> PropertyDefinitionRepository { get; set; }
Property Value
Type | Description |
---|---|
Injected<IPropertyDefinitionRepository> | The property definition repository. |
TemplateControlLoader
Gets or sets the TemplateControlLoader instance.
Declaration
[Obsolete("Use TemplateControlLoaderService instead")]
public Injected<TemplateControlLoader> TemplateControlLoader { get; set; }
Property Value
Type | Description |
---|---|
Injected<TemplateControlLoader> |
TemplateControlLoaderService
Gets or sets the template control loaderk.
Declaration
public virtual Injected<ITemplateControlLoader> TemplateControlLoaderService { get; set; }
Property Value
Type | Description |
---|---|
Injected<ITemplateControlLoader> |
Methods
ClearRegistrations()
This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public virtual void ClearRegistrations()
CreateInstance(Type, Object[])
Declaration
public object CreateInstance(Type baseType, params object[] constructorArguments)
Parameters
Type | Name | Description |
---|---|---|
System.Type | baseType | |
System.Object[] | constructorArguments |
Returns
Type | Description |
---|---|
System.Object |
CreatePropertyControl(PropertyData)
Creates an IPropertyControl for a given PropertyData. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public virtual 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. |
CreatePropertyControl(PropertyData, HttpContextBase, TemplateControl, String)
Creates an IPropertyControl for a given PropertyData. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public virtual IPropertyControl CreatePropertyControl(PropertyData propertyData, HttpContextBase httpContext, TemplateControl templateControl, string tag)
Parameters
Type | Name | Description |
---|---|---|
PropertyData | propertyData | The PropertyData. |
System.Web.HttpContextBase | httpContext | The HTTP context. |
System.Web.UI.TemplateControl | templateControl | The template control. |
System.String | tag | The tag used to resolve the template. |
Returns
Type | Description |
---|---|
IPropertyControl | A IPropertyControl that can be used to render an user interface for the PropertyData. |
GetControls(Type)
This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public ReadOnlyCollection<Type> GetControls(Type propertyType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | propertyType |
Returns
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<System.Type> |
IsRegistered(Type)
This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public virtual bool IsRegistered(Type baseType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | baseType |
Returns
Type | Description |
---|---|
System.Boolean |
RegisterClass(Type, Type)
Registers a class mapping. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public virtual void RegisterClass(Type baseType, Type mappedType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | baseType | Type of the base class. |
System.Type | mappedType | Type of the mapped class. |
TypeStringFromArguments(Object[])
Declaration
public static string TypeStringFromArguments(params object[] constructorArguments)
Parameters
Type | Name | Description |
---|---|---|
System.Object[] | constructorArguments |
Returns
Type | Description |
---|---|
System.String |