Class FormEditor
Tên không gian: Aspose.Html.Forms Tổng hợp: Aspose.HTML.dll (25.4.0)
Khóa học này đại diện cho biên tập viên trên Aspose.Html.HTMLFormElement tạo ra một cách dễ dàng hơn cho các nhà phát triển .net để chỉnh sửa các biểu mẫu html.
[ComVisible(true)]
public class FormEditor : IEnumerable<formelement>, IEnumerable, IDisposable
Inheritance
Implements
IEnumerable
Thành viên thừa kế
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Properties
Action
Xem định nghĩa thuộc tính hành động trong HTML 4.01.
public string Action { get; set; }
Giá trị bất động sản
Count
Số lượng hình dạng kiểm soát trong hình dạng.
public int Count { get; }
Giá trị bất động sản
Form
Aspose.Html.HTMLFormElement ban đầu được liên kết với ví dụ hiện tại của Aspose.Html.Forms.FormEditor.
public HTMLFormElement Form { get; }
Giá trị bất động sản
Method
Phương pháp HTTP [Đánh giá IETF RFC 2616] được sử dụng để gửi biểu mẫu. xem định nghĩa định nghĩa phương pháp trong HTML 4.01.
public HttpMethod Method { get; set; }
Giá trị bất động sản
cái này[int]
Quay lại yếu tố bằng chỉ số cụ thể.
public FormElement this[int index] { get; }
Giá trị bất động sản
cái này[String]
Trả lại mục bằng tên hoặc ID cụ thể.
public FormElement this[string name] { get; }
Giá trị bất động sản
Methods
Thêm t>(String)
Tạo một Aspose.Html.HTMLElement mới và thêm vào cuối biểu mẫu.
public T Add<t>(string name) where T : FormElement
Parameters
name
string
Tên của Element
Returns
T
Một trường hợp mới của yếu tố hình dạng
Loại Parameters
T
Loại yếu tố hình dạng
AddInput(String)
Tạo một Aspose.Html.Forms.InputElement mới và thêm vào cuối biểu mẫu.
public InputElement AddInput(string name)
Parameters
name
string
Tên thành phần input
Returns
Trở lại một Aspose.Html.Forms.InputElement mới được tạo ra.
AddInput(Nhãn hiệu: InputElementType)
Tạo một Aspose.Html.Forms.InputElement mới và thêm vào cuối biểu mẫu.
public InputElement AddInput(string name, InputElementType type)
Parameters
name
string
Tên thành phần input
type
InputElementType
Loại thành phần input
Returns
Trở lại một Aspose.Html.Forms.InputElement mới được tạo ra.
Create(HTMLThể loại)
Tạo một Aspose.Html.Forms.FormEditor mới dựa trên Aspose.Html.HTMLFormElement.
public static FormEditor Create(HTMLFormElement form)
Parameters
form
HTMLFormElement
HTML hình thức element
Returns
Trở lại một trường hợp mới của lớp Aspose.Html.Forms.FormEditor
Create(Tài liệu HTML, int)
Tạo một Aspose.Html.Forms.FormEditor mới dựa trên Aspose.Html.HTMLFormElement được chọn từ bộ sưu tập Aspose.Html.HTMLDocument.Forms theo chỉ số.
public static FormEditor Create(HTMLDocument document, int index)
Parameters
document
HTMLDocument
Tài liệu .
index
int
Chỉ số bên trong các hình thức thu thập.
Returns
Trở lại một trường hợp mới của lớp Aspose.Html.Forms.FormEditor
Exceptions
Ngoại lệ được thực hiện nếu chỉ số ra khỏi phạm vi.
Create(Tài liệu HTML, string)
Tạo một Aspose.Html.Forms.FormEditor mới dựa trên Aspose.Html.HTMLFormElement được chọn từ tài liệu bằng ID.
public static FormEditor Create(HTMLDocument document, string id)
Parameters
document
HTMLDocument
Tài liệu .
id
string
Người nhận dạng.
Returns
Trở lại một trường hợp mới của lớp Aspose.Html.Forms.FormEditor
Exceptions
Ngoại lệ được cung cấp nếu không có bất kỳ yếu tố bằng ID cụ thể hoặc yếu tố không phải là loại hình.
CreateNew(Tài liệu HTML)
Tạo một Aspose.Html.HTMLFormElement mới và liên kết nó với Aspose.Html.Forms.FormEditor. Aspose.Html.HTMLFormElement được tạo trong trạng thái tách khỏi tài liệu; để thêm nó vào tài liệu, vui lòng chọn vị trí thích hợp và sử dụng phương pháp Aspose.Html.Dom.Node.AppendChild(Aspose.Html.Dom.Node).
public static FormEditor CreateNew(HTMLDocument document)
Parameters
document
HTMLDocument
Tài liệu: HTMLDocument.
Returns
Trở lại một trường hợp mới của lớp Aspose.Html.Forms.FormEditor
Dispose()
Tạo ra các tài nguyên không được quản lý và quản lý.
public void Dispose()
Fill(Từ điển String, String=» » »)
Phương pháp này điền vào toàn bộ biểu mẫu với các giá trị cụ thể.
public void Fill(Dictionary<string, string=""> values)
Parameters
values
Dictionary
<
string
, string
>
Các giá trị được đại diện bởi cặp giá trị chìa khóa có chứa tên và giá trị cho các yếu tố hình thức.
Lời bài hát: T>(int)
Quay lại yếu tố bằng chỉ số cụ thể.
public T GetElement<t>(int index) where T : FormElement
Parameters
index
int
Chỉ số của Element
Returns
T
Quay lại yếu tố.
Loại Parameters
T
Loại yếu tố hình dạng
Lời bài hát: T>(String)
Quay lại mục bằng tên cụ thể.
public T GetElement<t>(string name) where T : FormElement
Parameters
name
string
Tên của Element
Returns
T
Quay lại yếu tố.
Loại Parameters
T
Loại yếu tố hình dạng
GetEnumerator()
Gửi số số.
public IEnumerator<formelement> GetEnumerator()
Returns
Quay lại FormElements Enumerator.</string,></string,>