InputExtensions.TextBoxFor Méthode

Définition

Surcharges

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String)

Retourne un élément d’entrée de texte.

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, Object)

Retourne un élément d’entrée de texte pour chaque propriété de l’objet représenté par l’expression spécifiée, à l’aide des attributs HTML spécifiés.

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String, IDictionary<String,Object>)

Retourne un élément d’entrée de texte.

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>)

Retourne un élément input de texte pour chaque propriété de l'objet qui est représenté par l'expression spécifiée.

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, IDictionary<String,Object>)

Retourne un élément d’entrée de texte pour chaque propriété de l’objet représenté par l’expression spécifiée, à l’aide des attributs HTML spécifiés.

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String, Object)

Retourne un élément d’entrée de texte.

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String)

Retourne un élément d’entrée de texte.

public static System.Web.Mvc.MvcHtmlString TextBoxFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, string format);
static member TextBoxFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextBoxFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), format As String) As MvcHtmlString

Paramètres de type

TModel

Type du modèle.

TProperty

Type de la valeur.

Paramètres

htmlHelper
HtmlHelper<TModel>

Instance du programme d'assistance HTML qui est étendue par cette méthode.

expression
Expression<Func<TModel,TProperty>>

Expression identifiant l'objet qui contient les propriétés à afficher.

format
String

Chaîne utilisée pour mettre en forme l'entrée.

Retours

Élément input dont l'attribut type a la valeur « text ».

S’applique à

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, Object)

Retourne un élément d’entrée de texte pour chaque propriété de l’objet représenté par l’expression spécifiée, à l’aide des attributs HTML spécifiés.

public static System.Web.Mvc.MvcHtmlString TextBoxFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, object htmlAttributes);
static member TextBoxFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextBoxFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), htmlAttributes As Object) As MvcHtmlString

Paramètres de type

TModel

Type du modèle.

TProperty

Type de la valeur.

Paramètres

htmlHelper
HtmlHelper<TModel>

Instance du programme d'assistance HTML qui est étendue par cette méthode.

expression
Expression<Func<TModel,TProperty>>

Expression identifiant l'objet qui contient les propriétés à restituer.

htmlAttributes
Object

Objet qui contient les attributs HTML à définir pour l’élément .

Retours

Élément input HTML dont l'attribut type a la valeur "text" pour chaque propriété de l'objet qui est représenté par l'expression.

Exceptions

Le expression paramètre est null ou vide.

S’applique à

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String, IDictionary<String,Object>)

Retourne un élément d’entrée de texte.

public static System.Web.Mvc.MvcHtmlString TextBoxFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, string format, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member TextBoxFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * string * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextBoxFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), format As String, htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString

Paramètres de type

TModel

Type du modèle.

TProperty

Type de la valeur.

Paramètres

htmlHelper
HtmlHelper<TModel>

Instance du programme d'assistance HTML qui est étendue par cette méthode.

expression
Expression<Func<TModel,TProperty>>

Expression identifiant l'objet qui contient les propriétés à afficher.

format
String

Chaîne utilisée pour mettre en forme l'entrée.

htmlAttributes
IDictionary<String,Object>

Objet qui contient les attributs HTML à définir pour l’élément .

Retours

Élément input dont l'attribut type a la valeur « text ».

S’applique à

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>)

Retourne un élément input de texte pour chaque propriété de l'objet qui est représenté par l'expression spécifiée.

public static System.Web.Mvc.MvcHtmlString TextBoxFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression);
static member TextBoxFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextBoxFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty))) As MvcHtmlString

Paramètres de type

TModel

Type du modèle.

TProperty

Type de la valeur.

Paramètres

htmlHelper
HtmlHelper<TModel>

Instance du programme d'assistance HTML qui est étendue par cette méthode.

expression
Expression<Func<TModel,TProperty>>

Expression identifiant l'objet qui contient les propriétés à restituer.

Retours

Élément input HTML dont l'attribut type a la valeur "text" pour chaque propriété de l'objet qui est représenté par l'expression.

Exceptions

Le expression paramètre est null ou vide.

S’applique à

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, IDictionary<String,Object>)

Retourne un élément d’entrée de texte pour chaque propriété de l’objet représenté par l’expression spécifiée, à l’aide des attributs HTML spécifiés.

public static System.Web.Mvc.MvcHtmlString TextBoxFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member TextBoxFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextBoxFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString

Paramètres de type

TModel

Type du modèle.

TProperty

Type de la valeur.

Paramètres

htmlHelper
HtmlHelper<TModel>

Instance du programme d'assistance HTML qui est étendue par cette méthode.

expression
Expression<Func<TModel,TProperty>>

Expression identifiant l'objet qui contient les propriétés à restituer.

htmlAttributes
IDictionary<String,Object>

Dictionnaire qui contient les attributs HTML à définir pour l'élément.

Retours

Un attribut de type d’élément d’entrée HTML est défini sur « text » pour chaque propriété de l’objet représenté par l’expression .

Exceptions

Le expression paramètre est null ou vide.

S’applique à

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String, Object)

Retourne un élément d’entrée de texte.

public static System.Web.Mvc.MvcHtmlString TextBoxFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, string format, object htmlAttributes);
static member TextBoxFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * string * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextBoxFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), format As String, htmlAttributes As Object) As MvcHtmlString

Paramètres de type

TModel

Type du modèle.

TProperty

Type de la valeur.

Paramètres

htmlHelper
HtmlHelper<TModel>

Instance du programme d'assistance HTML qui est étendue par cette méthode.

expression
Expression<Func<TModel,TProperty>>

Expression identifiant l'objet qui contient les propriétés à afficher.

format
String

Chaîne utilisée pour mettre en forme l'entrée.

htmlAttributes
Object

Objet qui contient les attributs HTML à définir pour l’élément .

Retours

Élément input dont l'attribut type a la valeur « text ».

S’applique à