这两天看DELPHI有关书籍,有关于这一属性不知如何应用?有没有实例?

解决方案 »

  1.   

    help文件中介绍:
    Description :
    Use ComponentIndex when iterating through the Components list of the component's owner to perform some action on owned components. It can be used in conjunction with ComponentCount. ComponentIndex is used internally for iterative assignment procedures. Note:
    The first component in the list has a ComponentIndex value of 0, the second has a value of 1, and so on. Therefore, when using ComponentIndex with ComponentCount, note that ComponentCount is always 1 more than the highest Components index.