View Source
Class DefaultShortStringHelperConfig
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public class DefaultShortStringHelperConfig
Properties
View Source
DefaultCulture
Declaration
public string DefaultCulture { get; set; }
Property Value
Type |
Description |
System.String |
|
View Source
UrlReplaceCharacters
Declaration
public Dictionary<string, string> UrlReplaceCharacters { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.String> |
|
Methods
View Source
ApplyUrlReplaceCharacters(String)
Returns a new string in which characters have been replaced according to the Umbraco settings UrlReplaceCharacters.
Declaration
public string ApplyUrlReplaceCharacters(string s)
Parameters
Type |
Name |
Description |
System.String |
s |
The string to filter.
|
Returns
Type |
Description |
System.String |
The filtered string.
|
View Source
Clone()
Declaration
public DefaultShortStringHelperConfig Clone()
Returns
View Source
CutMaxLength(String, Int32)
Declaration
public static string CutMaxLength(string text, int length)
Parameters
Type |
Name |
Description |
System.String |
text |
|
System.Int32 |
length |
|
Returns
Type |
Description |
System.String |
|
View Source
WithConfig(String, CleanStringType, DefaultShortStringHelperConfig.Config)
Declaration
public DefaultShortStringHelperConfig WithConfig(string culture, CleanStringType stringRole, DefaultShortStringHelperConfig.Config config)
Parameters
Returns
View Source
WithConfig(CleanStringType, DefaultShortStringHelperConfig.Config)
Declaration
public DefaultShortStringHelperConfig WithConfig(CleanStringType stringRole, DefaultShortStringHelperConfig.Config config)
Parameters
Returns
View Source
WithConfig(DefaultShortStringHelperConfig.Config)
Declaration
public DefaultShortStringHelperConfig WithConfig(DefaultShortStringHelperConfig.Config config)
Parameters
Returns
View Source
WithDefault(IUmbracoSettingsSection)
Sets the default configuration.
Declaration
public DefaultShortStringHelperConfig WithDefault(IUmbracoSettingsSection umbracoSettings)
Parameters
Returns