C# Class Sakura.AspNetCore.Mvc.Generators.FormattedStringContentGenerator

Generate IHtmlContent from a formatted string. The page number will be used as the format argument {0}.
Inheritance: StringContentGenerator
ファイルを表示 Open project: sgjsakura/AspNetCore

Private Properties

Property Type Description

Public Methods

Method Description
FormattedStringContentGenerator ( [ format, bool encodeText, IFormatProvider formatProvider = null ) : System

Initialize a new generator with specified parameters.

Protected Methods

Method Description
GenerateContentString ( PagerItemGenerationContext context ) : string

When be derived, generate the content string.

Method Details

FormattedStringContentGenerator() public method

Initialize a new generator with specified parameters.
is null.
public FormattedStringContentGenerator ( [ format, bool encodeText, IFormatProvider formatProvider = null ) : System
format [ The format string used to be generate the content string.
encodeText bool Whether the format result should be HTML encoded before be written to page.
formatProvider IFormatProvider /// The format provider used to generate the content string. If this parameter is null, /// will be used. ///
return System

GenerateContentString() protected method

When be derived, generate the content string.
protected GenerateContentString ( PagerItemGenerationContext context ) : string
context PagerItemGenerationContext The generation context.
return string