Xml.xmldom.TDOMVendorList.Vendors

From RAD Studio API Documentation
Jump to: navigation, search


Delphi

property Vendors[Index: Integer]: TDOMVendor read GetVendors; default;

C++

__property TDOMVendor* Vendors[int Index] = {read=GetVendors/*, default*/};

Properties

Type Visibility Source Unit Parent
property public
Xml.Xmldom.pas
Xml.xmldom.hpp
Xml.xmldom TDOMVendorList

Description

Lists the DOM vendors maintained by this TDOMVendorList object.

Use Vendors to access the DOM vendors in this collection. Index is the index of the vendor. Its value ranges from 0 to one less than the value returned by the Count method.

Note: In Delphi, Vendors is the default property for TDOMVendorList. This means that the property name can be omitted in code. That is, the statement

for i := 0 to DOMVendors.Count do
  StringList1.Add(DOMVendors.Vendors[i].Description);

Can be written

for i := 0 to DOMVendors.Count do
  StringList1.Add(DOMVendors[i].Description);

Note: In C++, Vendors can be accessed using the [] operator, to achieve an affect similar to the default property in Delphi.

See Also