SaaS CMS has officially launched! Learn more now.

Class PropertyDataExtensions

Extension methods for PropertyData

Inheritance
System.Object
PropertyDataExtensions
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public static class PropertyDataExtensions : Object

Methods

TranslateDescription(PropertyData)

Translates the description to the current language.

Declaration
public static string TranslateDescription(this PropertyData property)
Parameters
Type Name Description
PropertyData property
Returns
Type Description
System.String

The translated description

Remarks

If no translation is found the help text defined in the PropertyDefinition will be used.

TranslateDisplayName(PropertyData)

Translates the display name to the current language.

Declaration
public static string TranslateDisplayName(this PropertyData property)
Parameters
Type Name Description
PropertyData property
Returns
Type Description
System.String

The translated display name.

Remarks

If no translation is found the EditCaption defined in the PropertyDefinition will be used.