RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDOMVendorList.Vendors Property

Lists the DOM vendors maintained by this TDOMVendorList object.

Pascal
property Vendors [Index: Integer]: TDOMVendor;
C++
__property TDOMVendor Vendors[int Index];

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.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!