Exemplo n.º 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);
                }
            }
        }
Exemplo n.º 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);
            }
        }