FormGroupBoxItemCollection
A collection of all of the items contained in a form group box.
Example
form = cf.Form.New() group = cf.FormGroupBox.New("Items") item1 = cf.FormLabel.New("Item 1") item2 = cf.FormLabel.New("Item 2") -- Assemble the form objects into a layout group:Add(item1); group:Add(item2) form:Add(group); -- Modify items using the collection group.FormItems["Item 1"].Visible = false form:Run()
Usage locations
The FormGroupBoxItemCollection object can be accessed from the following locations:
- Collection lists
- FormGroupBox object has collection FormItems.
Property List
Method List
- Contains (label string)
- Checks if the collection contains an item with the given label. (Returns a boolean object.)
- Item (index number)
- Returns the FormItem at the given index. (Returns a FormItem object.)
- Item (label string)
- Returns the FormItem with the given label. (Returns a FormItem object.)
- Items ()
- Returns a table of FormItem. (Returns a List of FormItem object.)
- UniqueName (label string)
- Generates a unique name base of of the provided base name.If the base name already exists in the collection, a digit will be appended until a valid name is generated. (Returns a boolean object.)
Index List
Property Details
Method Details
- Contains (label string)
- Checks if the collection contains an item with the given label.
- Item (index number)
- Returns the FormItem at the given index.
- Item (label string)
- Returns the FormItem with the given label.
- Items ()
- Returns a table of FormItem.
- UniqueName (label string)
- Generates a unique name base of of the provided base name.If the base name already exists in the collection, a digit will be appended until a valid name is generated.