Пример #1
0
        /// <summary>
        /// Method implementation for Clear Unused Adornments
        /// </summary>
        /// <param name="startIndex"></param>
        protected void ClearUnUsedAdornments(int startIndex)
        {
            if (Adornments.Count > startIndex)
            {
                int count = Adornments.Count;

                for (int i = startIndex; i < count; i++)
                {
                    Adornments.RemoveAt(startIndex);
                }
            }
        }
Пример #2
0
        /// <summary>
        /// Method implementation for Clear Unused Adornments
        /// </summary>
        /// <param name="startIndex">The start index.</param>
        protected void ClearUnUsedAdornments(int startIndex)
        {
            if (Adornments.Count <= startIndex)
            {
                return;
            }

            var count = Adornments.Count;

            for (var i = startIndex; i < count; i++)
            {
                Adornments.RemoveAt(startIndex);
            }
        }