Public Member Functions | |
Remove ([in] VARIANT Index) | |
Call this method to remove one item from the collection. | |
Clear () | |
Removes all of the items from the collection. | |
Add ([in] LONG Left,[in] LONG Top,[in] LONG Width,[in] LONG Height,[out, retval] IDispatch **Item) | |
Call this method to create a new item in the collection. | |
Properties | |
LPUNKNOWN R | _NewEnum [] |
Returns the enumerator for the collection. | |
VARIANT R | Item [[in] long Index] [] |
Returns the specified item in the collection. | |
long R | Count [] |
Returns the number of items in the collection. |
The method WorkAreas returns a WorkAreas object. An WorkAreas object is a collection of the WorkArea objects. Example:
o = new ActiveXObject("Scripting.WindowSystemObject") fs = new ActiveXObject("Scripting.FileSystemObject") f = o.CreateForm(0,0,0,0) f.ClientWidth = 450 f.ClientHeight = 550 f.CenterControl() f.Text = "ListView Work Areas Demo" f.BorderWidth = 10 f.MinWidth = 500 f.MinHeight = 350 Box = f.CreateListView(10,10,250,300) Box.HotTrack = true Box.Align = o.Translate("AL_CLIENT") Ext = new ActiveXObject("Scripting.WindowSystemObjectExtensions") Box.LargeImages = Ext.SystemImageListLarge Box.WorkAreas.Add(10,10,180,180) Box.WorkAreas.Add(200,200,200,200) for (i = 0; i<10; i++) { Item = Box.Add("Item "+i) Item.ImageIndex = Ext.GetFileSysIconIndexLarge("1.txt",o.Translate("FILE_ATTRIBUTE_ARCHIVE")) if ((i % 2) == 0) { Item.SetPosition(210,210) } } Box.Arrange() f.Show() o.Run()
Add | ( | [in] LONG | Left, | |
[in] LONG | Top, | |||
[in] LONG | Width, | |||
[in] LONG | Height, | |||
[out, retval] IDispatch ** | Item | |||
) |
Call this method to create a new item in the collection.
Left | horizontal position of the area. | |
Top | vertical position of the area. | |
Width | width of the area. | |
Height | height of the area. |
Item | A new WorkArea object. |
Clear | ( | ) |
Removes all of the items from the collection.
Remove | ( | [in] VARIANT | Index | ) |
Call this method to remove one item from the collection.
Index | The index of the element to remove or the element itself. |
LPUNKNOWN R _NewEnum |
Returns the enumerator for the collection.
long R Count |
Returns the number of items in the collection.
VARIANT R Item[[in] long Index] | ( | ) |
Returns the specified item in the collection.