Class ImageTagHelper
Version: 21.x
Tag helper that renders HTML hyperlink for a Sitecore ImageField.
Inheritance
System.Object
ImageTagHelper
Namespace: Sitecore.AspNet.RenderingEngine.TagHelpers.Fields
Assembly: Sitecore.AspNet.RenderingEngine.dll
Syntax
Constructors
ImageTagHelper()
Declaration
Properties
Editable
Gets or sets a value indicating whether the field can be edited.
Declaration
Property Value
| Type | Description |
|---|---|
| System.Boolean |
For
Gets or sets the model value.
Declaration
Property Value
| Type | Description |
|---|---|
| Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression |
ImageParams
Gets or sets parameters that are passed to Sitecore to perform server-side resizing of the image.
Declaration
Property Value
| Type | Description |
|---|---|
| System.Object |
Methods
Process(TagHelperContext, TagHelperOutput)
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext | context | |
| Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput | output |
If you have suggestions for improving this article, let us know!