ViewModelTemplateTViewModel Methods |
The ViewModelTemplateTViewModel generic type exposes the following members.
Name | Description | |
---|---|---|
ContentPlaceholder |
Insert template content in master template
(Inherited from TemplateBaseT.) | |
DefineSection |
Defines a section that can written out to a layout.
(Inherited from TemplateBase.) | |
Description |
Define template description
(Inherited from TemplateBaseT.) | |
Execute |
Executes the compiled template.
(Inherited from TemplateBase.) | |
GetNavigation |
Gets a navigation tree viewmodel based on default settings
| |
GetNavigation(NavigationSettings) |
Gets a navigation tree viewmodel based on the provided settings
| |
GetPageIdByNavigationTag |
Gets the page id with the specified navigation tag.
(Inherited from TemplateBaseT.) | |
GetViewParameter |
Gets a view parameter value by parameter key.
| |
GetViewParameterBoolean |
Gets a view parameter value as Boolean by parameter key.
| |
GetViewParameterDateTime |
Gets a view parameter value as DateTime by parameter key.
| |
GetViewParameterDecimal |
Gets a view parameter value as Decimal by parameter key.
| |
GetViewParameterDouble |
Gets a view parameter value as Double by parameter key.
| |
GetViewParameterInt32 |
Gets a view parameter value as Int32 by parameter key.
| |
GetViewParameterInt64 |
Gets a view parameter value as Int64 by parameter key.
| |
GetViewParameterString |
Gets a view parameter value as String by parameter key.
| |
Include(String) |
Includes the template with the specified name, uses the current model and model-type.
(Inherited from TemplateBaseTViewModel.) | |
Include(String, Object) |
Includes the template with the specified name.
(Inherited from TemplateBaseTViewModel.) | |
Include(String, Object, Type) |
Includes the template with the specified name.
(Inherited from TemplateBaseTViewModel.) | |
IncludeFile |
Includes the file specified before the razor template is compiled.
(Inherited from TemplateBaseT.) | |
IsSectionDefined |
Determines if the section with the specified name has been defined.
(Inherited from TemplateBase.) | |
MasterPageFile |
Use master page file
(Inherited from TemplateBaseT.) | |
PushPromise |
Support for sending push promises to HTTP 2.0 clients. Call this method for static ressources and images that the current response will trigger new requests for. Typically js, css and image files.
(Inherited from TemplateBaseT.) | |
Raw |
Returns the specified string as a raw string. This will ensure it is not encoded.
(Inherited from TemplateBase.) | |
RenderBody |
Renders the body of the template.
(Inherited from TemplateBase.) | |
RenderGrid(Int32) |
Renders the first Grid on the page with the given ID.
If no Grids exist on the page, the empty string is returned.
| |
RenderGrid(Int32, String) |
Renders the Grid in the given container on the page with the given ID.
If no Grid exists on the page in the given container, the empty string is returned.
| |
RenderItem |
Render a single item from settings defined on an (anonymous) object
(Inherited from TemplateBaseT.) | |
RenderItemCreationForm |
Render item creating form from settings defined on an (anonymous) object
(Inherited from TemplateBaseT.) | |
RenderItemList |
Render item list from settings defined on an (anonymous) object
(Inherited from TemplateBaseT.) | |
RenderModelT |
Renders a view model which implements IViewModelTemplatePath.
| |
RenderNavigation |
Render xml navigation from settings defined on an (anonymous) object
(Inherited from TemplateBaseT.) | |
RenderPageContent |
Render page content
(Inherited from TemplateBaseT.) | |
RenderParagraphContent |
Render paragraph content
(Inherited from TemplateBaseT.) | |
RenderPartial(String) |
Renders a partial view using the current view model
| |
RenderPartialT(String, T) |
Renders a partial view using the given view model
| |
RenderPartialT(String, T, IDictionaryTKey, TValue) | ||
RenderSection |
Renders the section with the specified name.
(Inherited from TemplateBase.) | |
RenderSnippet |
Add snippet placeholder
(Inherited from TemplateBaseT.) | |
ResolveLayout |
Resolves the layout template.
(Inherited from TemplateBaseTViewModel.) | |
ResolveUrl |
Resolves the specified path
(Inherited from TemplateBase.) | |
SetData |
Set the data for this template.
(Inherited from TemplateBase.) | |
SetModel |
Set the model.
(Inherited from TemplateBaseTViewModel.) | |
SnippetEnd |
End a snippet
(Inherited from TemplateBaseT.) | |
SnippetStart |
Start a snippet
(Inherited from TemplateBaseT.) | |
Title | (Inherited from TemplateBaseT.) | |
Translate(String) |
Translates a text using the current language and design context.
(Inherited from TemplateBaseT.) | |
Translate(String, String) |
Translates a text using the current language and design context using a specified default translation if no translation exists.
(Inherited from TemplateBaseT.) | |
Translate(String, String, String) |
Translates a text using the current language and design context using a specified default translation if no translation exists.
(Inherited from TemplateBaseT.) | |
Write(Object) |
Writes the specified object to the result.
(Inherited from TemplateBase.) | |
Write(TemplateWriter) |
Writes the specified template helper result.
(Inherited from TemplateBase.) | |
WriteAttribute |
Writes an attribute to the result.
(Inherited from TemplateBase.) | |
WriteAttributeTo |
Writes an attribute to the specified TextWriter.
(Inherited from TemplateBase.) | |
WriteLiteral |
Writes the specified string to the result.
(Inherited from TemplateBase.) | |
WriteLiteralTo |
Writes a string literal to the specified TextWriter.
(Inherited from TemplateBase.) | |
WriteTo(TextWriter, Object) |
Writes the specified object to the specified TextWriter.
(Inherited from TemplateBase.) | |
WriteTo(TextWriter, TemplateWriter) |
Writes the specfied template helper result to the specified writer.
(Inherited from TemplateBase.) |
Name | Description | |
---|---|---|
RazorEngine#Templating#ITemplate#Run |
Runs the template and returns the result.
(Inherited from TemplateBase.) |