HtmlHelperExtensions.RadioButtonFor<TModel, TProperty> Method (HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, Object, String, String, Boolean, String, String, Nullable<Int32>, Boolean, Nullable<Int32>, String, Nullable<Int32>, String)
Namespace: Microsoft.Web.Mvc.Html
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Syntax
public static MvcHtmlString RadioButtonFor<TModel, TProperty>(
this HtmlHelper<TModel> htmlHelper,
Expression<Func<TModel, TProperty>> expression,
object value,
string cssClass = null,
string dir = null,
bool disabled = false,
string id = null,
string lang = null,
Nullable<int> maxLength = null,
bool readOnly = false,
Nullable<int> size = null,
string style = null,
Nullable<int> tabIndex = null,
string title = null
)
public:
generic<typename TModel, typename TProperty>
[ExtensionAttribute]
static MvcHtmlString^ RadioButtonFor(
HtmlHelper<TModel>^ htmlHelper,
Expression<Func<TModel, TProperty>^>^ expression,
Object^ value,
String^ cssClass = null,
String^ dir = null,
bool disabled = false,
String^ id = null,
String^ lang = null,
Nullable<int> maxLength = null,
bool readOnly = false,
Nullable<int> size = null,
String^ style = null,
Nullable<int> tabIndex = null,
String^ title = null
)
static member RadioButtonFor<'TModel, 'TProperty> :
htmlHelper:HtmlHelper<'TModel> *
expression:Expression<Func<'TModel, 'TProperty>> *
value:Object *
cssClass:string = null *
dir:string = null *
disabled:bool = false *
id:string = null *
lang:string = null *
maxLength:Nullable<int> = null *
readOnly:bool = false *
size:Nullable<int> = null *
style:string = null *
tabIndex:Nullable<int> = null *
title:string = null -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function RadioButtonFor(Of TModel, TProperty) (
htmlHelper As HtmlHelper(Of TModel),
expression As Expression(Of Func(Of TModel, TProperty)),
value As Object,
cssClass As String,
dir As String,
disabled As Boolean,
id As String,
lang As String,
maxLength As Nullable(Of Integer),
readOnly As Boolean,
size As Nullable(Of Integer),
style As String,
tabIndex As Nullable(Of Integer),
title As String
) As MvcHtmlString
Parameters
- htmlHelper
Type: System.Web.Mvc.HtmlHelper<TModel>
- expression
Type: System.Linq.Expressions.Expression<Func<TModel, TProperty>>
- value
Type: System.Object
- cssClass
Type: System.String
- dir
Type: System.String
- disabled
Type: System.Boolean
- id
Type: System.String
- lang
Type: System.String
- maxLength
Type: System.Nullable<Int32>
- readOnly
Type: System.Boolean
- size
Type: System.Nullable<Int32>
- style
Type: System.String
- tabIndex
Type: System.Nullable<Int32>
- title
Type: System.String
Return Value
Type: System.Web.Mvc.MvcHtmlString
Type Parameters
- TModel
- TProperty
See Also
HtmlHelperExtensions Class
Microsoft.Web.Mvc.Html Namespace
Return to top