public void RemoveLinkSource(int index)
        {
            if (_topicLinks == null || _topicLinks.Count == 0)
            {
                return;
            }

            _topicLinks.RemoveAt(index);
        }
        public void Remove(int index)
        {
            if (_listNamespaces.Count == 0)
            {
                return;
            }

            _listNamespaces.RemoveAt(index);
        }
Beispiel #3
0
        public void Remove(int index)
        {
            if (_listItems.Count == 0)
            {
                return;
            }

            _listItems.RemoveAt(index);
        }
Beispiel #4
0
        /// <overloads>
        /// Removes an item from the list of items in this source.
        /// </overloads>
        /// <summary>
        /// Removes the item of the specified index from the list of items.
        /// </summary>
        /// <param name="index">The index of the item to be removed.</param>
        /// <returns>
        /// This returns <see langword="true"/> if list is not empty and the
        /// index is within range; otherwise, it returns <see langword="false"/>.
        /// </returns>
        public bool Remove(int index)
        {
            if (index < 0 || index >= _listItems.Count)
            {
                return(false);
            }

            _listItems.RemoveAt(index);

            return(true);
        }