Class TemplateDefinition
Inheritance
System.Object
TemplateDefinition
Assembly: Volo.Abp.TextTemplating.dll
Syntax
public class TemplateDefinition : object, IHasNameWithLocalizableDisplayName
Constructors
TemplateDefinition(String, Type, ILocalizableString, Boolean, String, String)
Declaration
public TemplateDefinition(string name, Type localizationResource = null, ILocalizableString displayName = null, bool isLayout = false, string layout = null, string defaultCultureName = null)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
| Type |
localizationResource |
|
| ILocalizableString |
displayName |
|
| System.Boolean |
isLayout |
|
| System.String |
layout |
|
| System.String |
defaultCultureName |
|
Fields
MaxNameLength
Declaration
public const int MaxNameLength = null
Field Value
| Type |
Description |
| System.Int32 |
|
Properties
DefaultCultureName
Declaration
public string DefaultCultureName { get; }
Property Value
| Type |
Description |
| System.String |
|
DisplayName
Declaration
public ILocalizableString DisplayName { get; set; }
Property Value
IsInlineLocalized
Declaration
public bool IsInlineLocalized { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
IsLayout
Declaration
public bool IsLayout { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Item[String]
Declaration
public object this[string name] { get; set; }
Parameters
| Type |
Name |
Description |
| System.String |
name |
Name of the property
|
Property Value
| Type |
Description |
| System.Object |
Returns the value in the Properties dictionary by given .
Returns null if given is not present in the Properties dictionary.
|
Layout
Declaration
public string Layout { get; set; }
Property Value
| Type |
Description |
| System.String |
|
LocalizationResource
Declaration
public Type LocalizationResource { get; set; }
Property Value
Name
Declaration
public string Name { get; }
Property Value
| Type |
Description |
| System.String |
|
Properties
Can be used to get/set custom properties for this feature.
Declaration
public Dictionary<string, object> Properties { get; }
Property Value
| Type |
Description |
| Dictionary<System.String, System.Object> |
|
Methods
WithProperty(String, Object)
Sets a property in the Properties dictionary.
This is a shortcut for nested calls on this object.
Declaration
public virtual TemplateDefinition WithProperty(string key, object value)
Parameters
| Type |
Name |
Description |
| System.String |
key |
|
| System.Object |
value |
|
Returns
Implements
Extension Methods