Delen via


Microsoft.AspNetCore.Mvc.Rendering Namespace

Provides types used for HTML generation using HTML helpers.

Classes

HtmlHelperComponentExtensions

Extensions for rendering components.

HtmlHelperDisplayExtensions

Display-related extensions for IHtmlHelper and IHtmlHelper<TModel>.

HtmlHelperDisplayNameExtensions

DisplayName-related extensions for IHtmlHelper and IHtmlHelper<TModel>.

HtmlHelperEditorExtensions

Editor-related extensions for IHtmlHelper and IHtmlHelper<TModel>.

HtmlHelperFormExtensions

Form-related extensions for IHtmlHelper.

HtmlHelperInputExtensions

Input-related extensions for IHtmlHelper and IHtmlHelper<TModel>.

HtmlHelperLabelExtensions

Label-related extensions for IHtmlHelper and IHtmlHelper<TModel>.

HtmlHelperLinkExtensions

Link-related extensions for IHtmlHelper.

HtmlHelperNameExtensions

Name-related extensions for IHtmlHelper.

HtmlHelperPartialExtensions

PartialView-related extensions for IHtmlHelper.

HtmlHelperSelectExtensions

Select-related extensions for IHtmlHelper and IHtmlHelper<TModel>.

HtmlHelperValidationExtensions

Validation-related extensions for IHtmlHelper and IHtmlHelper<TModel>.

HtmlHelperValueExtensions

Value-related extensions for IHtmlHelper and IHtmlHelper<TModel>.

JsonHelperExtensions

Newtonsoft.Json specific extensions to IJsonHelper.

MultiSelectList

Represents a list that lets users select multiple items. This class is typically rendered as an HTML <select multiple="multiple"> element with the specified collection of SelectListItem objects.

MvcForm

An HTML form element in an MVC view.

SelectList

Represents a list that lets users select a single item. This class is typically rendered as an HTML <select> element with the specified collection of SelectListItem objects.

SelectListGroup

Represents the optgroup HTML element and its attributes. In a select list, multiple groups with the same name are supported. They are compared with reference equality.

SelectListItem

Represents an item in a SelectList or MultiSelectList. This class is typically rendered as an HTML <option> element with the specified attribute values.

TagBuilder

Contains methods and properties that are used to create HTML elements. This class is often used to write HTML helpers and tag helpers.

ViewComponentHelperExtensions

Extension methods for IViewComponentHelper.

ViewContext

Context for view execution.

Interfaces

IHtmlHelper

Base HTML helpers.

IHtmlHelper<TModel>

An IHtmlHelper for Linq expressions.

IJsonHelper

Base JSON helpers.

Enums

CheckBoxHiddenInputRenderMode

Controls the rendering of hidden input fields when using CheckBox tag helpers or html helpers.

FormInputRenderMode

Used for configuring how form inputs should be rendered with respect to the current locale.

FormMethod

Specifies constants which define the form method used.

Html5DateRenderingMode

Controls the value-rendering method For HTML5 input elements of types such as date, time, datetime and datetime-local.

RenderMode

Describes the render mode of the component.

TagRenderMode

Specifies constants for tag rendering modes.

ValidationSummary

Acceptable validation summary rendering modes.

Remarks

For more information about HTML helpers, see IHtmlHelper.