Class FormEditor
ชื่อพื้นที่: Aspose.Html.Forms การประกอบ: Aspose.HTML.dll (25.4.0)
ประเภทนี้แสดงให้เห็นถึงตัวแก้ไขเกี่ยวกับ Aspose.Html.HTMLFormElement ซึ่งสร้างวิธีที่ง่ายต่อผู้พัฒนา .net เพื่อแก้ไขรูปแบบ html
[ComVisible(true)]
public class FormEditor : IEnumerable<formelement>, IEnumerable, IDisposable
Inheritance
Implements
IEnumerable
อนุญาโตตุลาการ
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Properties
Action
Server-side form handler. ดูคําจํากัดความ attribute action ใน HTML 4.01.
public string Action { get; set; }
คุณสมบัติมูลค่า
Count
จํานวนรูปแบบควบคุมในรูปแบบ
public int Count { get; }
คุณสมบัติมูลค่า
Form
Aspose.Html.HTMLFormElement ที่มาพร้อมกับตัวอย่างปัจจุบันของ Aspose.Html.Forms.FormEditor
public HTMLFormElement Form { get; }
คุณสมบัติมูลค่า
Method
วิธีการ HTTP [IETF RFC 2616] ใช้ในการส่งแบบฟอร์ม ดูวิธีการ attribute definition ใน HTML 4.01.
public HttpMethod Method { get; set; }
คุณสมบัติมูลค่า
นี่[int]
กลับรายการโดย index ที่ระบุไว้
public FormElement this[int index] { get; }
คุณสมบัติมูลค่า
นี่[รั้ว]
กลับรายการด้วยชื่อหรือ ID ที่ระบุไว้
public FormElement this[string name] { get; }
คุณสมบัติมูลค่า
Methods
เพิ่ม (รั้ว)
สร้าง Aspose.Html.HTMLElement ใหม่และเพิ่มมันไปยังปลายแบบฟอร์ม
public T Add<t>(string name) where T : FormElement
Parameters
name
string
ชื่อองค์ประกอบ
Returns
T
ตัวอย่างใหม่ขององค์ประกอบรูปแบบ
ประเภทพารามิเตอร์
T
ประเภทองค์ประกอบรูปแบบ
AddInput(รั้ว)
สร้าง Aspose.Html.Forms.InputElement ใหม่และเพิ่มมันไปยังปลายแบบฟอร์ม
public InputElement AddInput(string name)
Parameters
name
string
ชื่อองค์ประกอบ input
Returns
กลับ Aspose.Html.Forms.InputElement ที่สร้างใหม่
AddInput(ลวด, InputElementType)
สร้าง Aspose.Html.Forms.InputElement ใหม่และเพิ่มมันไปยังปลายแบบฟอร์ม
public InputElement AddInput(string name, InputElementType type)
Parameters
name
string
ชื่อองค์ประกอบ input
type
InputElementType
ประเภทขององค์ประกอบ input
Returns
กลับ Aspose.Html.Forms.InputElement ที่สร้างใหม่
Create(อะไหล่ HTML)
สร้าง Aspose.Html.Forms.FormEditor ใหม่ขึ้นอยู่กับ Aspose.Html.HTMLFormElement
public static FormEditor Create(HTMLFormElement form)
Parameters
form
HTMLFormElement
องค์ประกอบรูปแบบ html
Returns
กลับตัวอย่างใหม่ของ Class Aspose.Html.Forms.FormEditor
Create(HTMLDocument, int)
สร้าง Aspose.Html.Forms.FormEditor ใหม่ขึ้นอยู่กับ Aspose.Html.HTMLFormElement ที่เลือกจากรวบรวม Aspose.Html.HTMLDocument.Forms โดย index
public static FormEditor Create(HTMLDocument document, int index)
Parameters
document
HTMLDocument
กระดาษ
index
int
อินเด็กซ์ภายในการเก็บรวบรวมแบบฟอร์ม
Returns
กลับตัวอย่างใหม่ของ Class Aspose.Html.Forms.FormEditor
Exceptions
การยกเว้นจะเกิดขึ้นหาก index ออกจากช่วง
Create(HTMLDocument, string)
สร้าง Aspose.Html.Forms.FormEditor ใหม่ขึ้นอยู่กับ Aspose.Html.HTMLFormElement ที่เลือกจากเอกสารโดย ID
public static FormEditor Create(HTMLDocument document, string id)
Parameters
document
HTMLDocument
กระดาษ
id
string
ตัวระบุ
Returns
กลับตัวอย่างใหม่ของ Class Aspose.Html.Forms.FormEditor
Exceptions
การยกเว้นจะเกิดขึ้นหากไม่มีองค์ประกอบโดย ID ที่ระบุหรือองค์ประกอบไม่ได้เป็นรูปแบบ
CreateNew(HTMLเอกสาร)
สร้าง Aspose.Html.HTMLFormElement ใหม่และเชื่อมโยงกับ Aspose.Html.Forms.FormEditor Aspose.Html.HTMLFormElement ถูกสร้างขึ้นในสถานะที่แยกจากเอกสาร เพื่อเชื่อมโยงกับเอกสารโปรดเลือกตําแหน่งที่เหมาะสมและใช้วิธีการ Aspose.Html.Dom.Node.AppendChild(Aspose.Html.Dom.Node)
public static FormEditor CreateNew(HTMLDocument document)
Parameters
document
HTMLDocument
The Aspose.Html.HTMLDocument
Returns
กลับตัวอย่างใหม่ของ Class Aspose.Html.Forms.FormEditor
Dispose()
การปล่อยทรัพยากรที่ไม่ได้จัดการและจัดการ
public void Dispose()
Fill(ลักษณะ: String, String="">)
วิธีการนี้เติมแบบฟอร์มทั้งหมดด้วยค่าที่ระบุ
public void Fill(Dictionary<string, string=""> values)
Parameters
values
Dictionary
<
string
, string
>
หมายเลขหมายเลขหมายเลขหมายเลขหมายเลขหมายเลขหมายเลขหมายเลขหมายเลขหมายเลขหมายเลขหมายเลขหมายเลขหมายเลข
หมายเลขรุ่น: T>(int)
กลับรายการโดย index ที่ระบุไว้
public T GetElement<t>(int index) where T : FormElement
Parameters
index
int
อัตราส่วนขององค์ประกอบ
Returns
T
กลับองค์ประกอบ
ประเภทพารามิเตอร์
T
ประเภทขององค์ประกอบรูปแบบ
หมายเลขรุ่น: T>(รั้ว)
กลับรายการด้วยชื่อที่ระบุ
public T GetElement<t>(string name) where T : FormElement
Parameters
name
string
ชื่อองค์ประกอบ
Returns
T
กลับองค์ประกอบ
ประเภทพารามิเตอร์
T
ประเภทขององค์ประกอบรูปแบบ
GetEnumerator()
รับตัวเลข
public IEnumerator<formelement> GetEnumerator()
Returns
กลับ FormElements Enumerator</string,></string,>