Class FormEditor
Contenuti
[
Nascondere
]FormEditor class
Questa classe rappresenta l’editor rispetto aHTMLFormElement che crea un modo più semplice per gli sviluppatori .net di modificare i moduli html.
public class FormEditor : IDisposable, IEnumerable<FormElement>
Proprietà
| Nome | Descrizione |
|---|---|
| Action { get; set; } | Gestore di moduli lato server. Vedi la definizione dell’attributo action in HTML 4.01. |
| Count { get; } | Il numero di controlli del modulo nel modulo. |
| Form { get; } | L’originaleHTMLFormElement associato all’istanza corrente diFormEditor . |
| Item { get; } | Restituisce l’elemento in base all’indice specificato. (2 indexers) |
| Method { get; set; } | Metodo HTTP [RFC 2616 dell’IETF utilizzato per inviare il modulo. Vedere la definizione dell’attributo del metodo in HTML 4.01. |
Metodi
| Nome | Descrizione |
|---|---|
| static Create(HTMLFormElement) | Crea un nuovoFormEditor basato suHTMLFormElement . |
| static Create(HTMLDocument, int) | Crea un nuovoFormEditor basato suHTMLFormElement selezionato dalForms raccolta per indice. |
| static Create(HTMLDocument, string) | Crea un nuovoFormEditor basato suHTMLFormElement selezionato dal documento da id. |
| static CreateNew(HTMLDocument) | Crea un nuovoHTMLFormElement e ad esso associatoFormEditor .HTMLFormElement viene creato nello stato distaccato dal documento; per allegarlo al documento, selezionare la posizione e l’uso correttiAppendChild metodo. |
| Add<T>(string) | Crea un nuovoHTMLElement e lo aggiunge alla fine del modulo. |
| AddInput(string) | Crea un nuovoInputElement e lo aggiunge alla fine del modulo. |
| AddInput(string, InputElementType) | Crea un nuovoInputElement e lo aggiunge alla fine del modulo. |
| Dispose() | Rilascia risorse non gestite e gestite. |
| Fill(Dictionary<string, string>) | Questo metodo riempie l’intero modulo con i valori specificati. |
| GetElement<T>(int) | Restituisce l’elemento in base all’indice specificato. |
| GetElement<T>(string) | Restituisce l’elemento in base al nome specificato. |
| GetEnumerator() | Ottiene l’enumeratore. |
Guarda anche
- class FormElement
- spazio dei nomi Aspose.Html.Forms
- assemblea Aspose.HTML