Interface IXPathResult

Interface IXPathResult

ชื่อพื้นที่: Aspose.Svg.Dom.XPath การประชุม: Aspose.SVG.dll (25.5.0)

อินเทอร์เฟซ ‘XPathResult’ แสดงผลของการประเมินการแสดงออกของ anXPath 1.0 ในแง่ของจุดเฉพาะ เนื่องจากการประเมินการแสดงออกของ XPath สามารถนําไปสู่ประเภทผลที่แตกต่างกันวัตถุนี้ทําให้เป็นไปไม่ได้ที่จะค้นพบและจัดการประเภทและค่าของผล

[ComVisible(true)]
[DOMNoInterfaceObject]
public interface IXPathResult

Properties

BooleanValue

ประโยชน์ของผลลัพธ์ boolean นี้

[DOMName("booleanValue")]
bool BooleanValue { get; }

คุณสมบัติมูลค่า

bool

Exceptions

DOMException

TYPE_ERR: เพิ่มขึ้นถ้า ‘resultType’ ไม่เป็น ‘Boolean’ ประเภท

InvalidIteratorState

หมายความว่า iterator ได้กลายเป็น invalid. True if ‘resultType’is ‘UnorderedNodeIterator’ type or ‘OrderedNodeIterator’ type and the document has been modified since this result was returned.

[DOMName("invalidIteratorState")]
bool InvalidIteratorState { get; }

คุณสมบัติมูลค่า

bool

NumberValue

ค่าของหมายเลขนี้ผล

[DOMName("numberValue")]
double NumberValue { get; }

คุณสมบัติมูลค่า

double

Exceptions

DOMException

TYPE_ERR: เพิ่มขึ้นถ้า ‘resultType’ ไม่เป็น ‘หมายเลข’ ประเภท

ResultType

รหัสที่แสดงให้เห็นถึงประเภทของผลลัพธ์นี้ตามที่กําหนดโดยhttp://www.w3.org/TR/DOM-ระดับ-3-XPath/xpath.html#XPathResultAspose.Svg.Dom.XPath.xpathResultType enum

[DOMName("resultType")]
XPathResultType ResultType { get; }

คุณสมบัติมูลค่า

XPathResultType

SingleNodeValue

ประมูลค่าของผลลัพธ์คิวเดี่ยวนี้ซึ่งอาจเป็น ‘ศูนย์’

[DOMNullable]
[DOMName("singleNodeValue")]
Node SingleNodeValue { get; }

คุณสมบัติมูลค่า

Node

Exceptions

DOMException

TYPE_ERR: เพิ่มขึ้นถ้า resultType ไม่ใช่ ‘AnyUnorderedNode’ หรือ ‘FirstOrdered Node’.

SnapshotLength

หมายเลข nodes ใน snapshot ผล คะแนนที่ถูกต้องสําหรับ snapshot หมายเหตุคือ ‘0’ ไปยัง ‘snapshotLength-1’ รวม

[DOMName("snapshotLength")]
int SnapshotLength { get; }

คุณสมบัติมูลค่า

int

Exceptions

DOMException

TYPE_ERR: ที่เพิ่มขึ้นถ้า resultType ไม่ใช่ ‘UnorderedNodeSnapshot’ หรือ ‘Ordered Node Snaphot’ ประเภท

StringValue

ประโยชน์ของผลลัพธ์เหล็กนี้

[DOMName("stringValue")]
string StringValue { get; }

คุณสมบัติมูลค่า

string

Exceptions

DOMException

TYPE_ERR: เพิ่มขึ้นถ้า ‘resultType’ ไม่เป็น ‘String’ ประเภท

Methods

IterateNext()

Iterates และกลับมา node ต่อไปจาก node set หรือ ’null’ ถ้าไม่มี node อีกต่อไป

[DOMName("iterateNext")]
Node IterateNext()

Returns

Node

กลับปุ่มถัดไป

Exceptions

DOMException

TYPE_ERR: เพิ่มขึ้นถ้า ‘resultType’ ไม่ใช่ ‘UnorderedNodeIterator’ หรือ ‘Ordered Nodeİteratori’ ประเภท

DOMException

INVALID_STATE_ERR: เอกสารที่มีการเปลี่ยนแปลงหลังจากที่ผลลัพธ์ได้รับการกลับมา

SnapshotItem(int)

กลับรายการ ‘index’th ในคอลเลกชัน snapshot หาก ‘index’ เป็นขนาดใหญ่กว่าหรือเท่ากับจํานวนคอลเลกชันในรายการวิธีการนี้จะกลับ ’null’. ไม่เหมือนกับผลของ theiterator snapshot จะไม่ได้รับผลลัพธ์ แต่อาจไม่ตรงกับเอกสารปัจจุบันหากมีการเปลี่ยนแปลง

[DOMName("snapshotItem")]
[DOMNullable]
Node SnapshotItem(int index)

Parameters

index int

อินเดอร์ลงในรวบรวมช็อตเด็ด

Returns

Node

ปุ่มที่ตําแหน่ง ‘index’th ใน ‘NodeList’ หรือ ’null’ ifthat ไม่ใช่ index ที่ถูกต้อง

Exceptions

DOMException

TYPE_ERR: เพิ่มขึ้นถ้า ‘resultType’ ไม่ใช่ ‘UnorderedNodeSnapshot’ หรือ ‘Ordered Node Snaphot’ ประเภท

 แบบไทย