GetFormField

FormFieldCollection.GetFormField<T> method

Gets the form field with the specified name and type.

public T GetFormField<T>(string name)
    where T : IFormField
Parameter Description
T The type of the form field.
name The name of the form field.

Return Value

The form field with the specified name and type, if found; otherwise, the default value for the type.

See Also