C# Class Sitecore.Modules.WeBlog.Extensions.StringExtensions

Mostra file Open project: WeTeam/WeBlog

Public Methods

Method Description
HasValue ( this input ) : bool

Determines whether the specified input has value.

MaxLength ( this input, int length, string continuesToken = "..." ) : string

Limits a strings length to a maximum number of characters

ToHtmlString ( this input ) : HtmlString

Converts string input into MvcHtmlString

Method Details

HasValue() public static method

Determines whether the specified input has value.
public static HasValue ( this input ) : bool
input this The input.
return bool

MaxLength() public static method

Limits a strings length to a maximum number of characters
public static MaxLength ( this input, int length, string continuesToken = "..." ) : string
input this The input to process
length int The maximum length of the string
continuesToken string The token to append to the string if it is truncated
return string

ToHtmlString() public static method

Converts string input into MvcHtmlString
public static ToHtmlString ( this input ) : HtmlString
input this
return HtmlString