ComponentFactory.Quicksilver.Layout.MetaElementCollection.RemoveAt C# (CSharp) Method

RemoveAt() public method

Removes the UIElement at the specified index.
public RemoveAt ( int index ) : void
index int The index of the UIElement that you want to remove.
return void
        public override void RemoveAt(int index)
        {
            if (_isItemsHost)
                base.RemoveAt(index);
            else
            {
                VerifyWriteAccess();

                // Get the element to be removed
                UIElement element = this[index];

                // Remove it from the external collection
                _externalChildren.RemoveAt(index);

                // Instruct the visual parent it must measure with the change in state
                _visualParent.InvalidateMeasure();

                // Actual elements are removed from internal collection once removed animation completes
                OnUIElementsRemove(new UIElementsEventArgs(element));
            }
        }