C# Class N2Bootstrap.Library.Defaults

Mostrar archivo Open project: pauldotknopf/N2Bootstrap

Public Properties

Property Type Description
ContainerWrappableZones List

Public Methods

Method Description
GetImageClass ( ImageDisplayTypeEnum imageDisplayType ) : string
ImageSize ( string zoneName ) : string
ImageSize ( string preferredSize, string fallbackToZoneNamed ) : string
IsContainerWrappable ( string zoneName ) : bool
PreviewText ( string text, int numberOfCharacters = 140 ) : string
SelectLanguage ( this request, ContentItem currentPage ) : ContentItem

Picks the translation best matching the browser-language or the first translation in the list

Private Methods

Method Description
GetTranslations ( ContentItem currentPage ) : IEnumerable

Method Details

GetImageClass() public static method

public static GetImageClass ( ImageDisplayTypeEnum imageDisplayType ) : string
imageDisplayType ImageDisplayTypeEnum
return string

ImageSize() public static method

public static ImageSize ( string zoneName ) : string
zoneName string
return string

ImageSize() public static method

public static ImageSize ( string preferredSize, string fallbackToZoneNamed ) : string
preferredSize string
fallbackToZoneNamed string
return string

IsContainerWrappable() public static method

public static IsContainerWrappable ( string zoneName ) : bool
zoneName string
return bool

PreviewText() public static method

public static PreviewText ( string text, int numberOfCharacters = 140 ) : string
text string
numberOfCharacters int
return string

SelectLanguage() public static method

Picks the translation best matching the browser-language or the first translation in the list
public static SelectLanguage ( this request, ContentItem currentPage ) : ContentItem
request this
currentPage ContentItem
return ContentItem

Property Details

ContainerWrappableZones public_oe static_oe property

public static List ContainerWrappableZones
return List