RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebComponentList.WebComponents Property

Lists the Web items in the list.

Pascal
property WebComponents [Index: Integer]: TComponent;
C++
__property TComponent * WebComponents[int Index];

Use WebComponents to access the Web components listed by TWebComponentList. Use WebComponents with the Count property to iterate through all of the components in the list. Use the Add or Remove method to add or remove components from the list. 

WebComponents is the default property for TWebComponentList. This means that the property name can be omitted when accessing a component in the list. Thus, the line

WebItem := InetXPageProducer1.WebPageItems.WebComponents[0];

 

WebItem = InetXPageProducer1->WebPageItems->WebComponents[0];

can be written

WebItem := InetXPageProducer1.WebPageItems[0];

 

WebItem = (*(InetXPageProducer1->WebPageItems))[0];

 

Count 

Add 

Remove 

operator_sb

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!