Version

LayoutItemsCollection Class Members

The following tables list the members exposed by LayoutItemsCollection.

Public Constructors
 NameDescription
Public ConstructorLayoutItemsCollection ConstructorConstructor.  
Public Properties
 NameDescription
Public PropertyCountReturns the number of items this LayoutItemsCollection contains.  
Public PropertyItemGets the item at specified index.  
Protected Properties
 NameDescription
Protected PropertyLayoutItemsLayout items.  
Public Methods
 NameDescription
Public MethodAddOverloaded. Adds an item to be managed by this layout manager. It uses null as the constraint so the underlying layout manager must support null constraints.  
Public MethodClearRemoves all the items.  
Public MethodContainsReturns true if the passed in item contained in this layout manager.  
Public MethodGetConstraintReturns the constraint object associated with the item. Throws an exception if the item does not exist (ie. it hasn't been added through AddLayoutItem method has been removed).  
Public MethodGetItemGets the item at specified index.  
Public MethodIndexOfRetruns the index of the passed in item in the layout items collection.  
Public MethodInsertOverloaded. Inserts the item at specified index. It uses null as the constraint so the underlying layout manager must support null constraints.  
Public MethodRemoveRemoves an item from this layout manager if it exists.  
Public MethodRemoveAtRemoves the item at specified index.  
Public MethodSetConstraintSets the constraint for the item. If the item doesn't exist in the collection, its added.  
See Also