Fractrace.Animation.AnimationControl.RemoveStep C# (CSharp) Method

RemoveStep() public method

Remove entry with given time from timeline.
public RemoveStep ( int time ) : void
time int
return void
        public void RemoveStep(int time)
        {
            // Remove Entry with given time from Text.
            string animtext = tbAnimationDescription.Text;
            string[] stringSeparators = new string[] { System.Environment.NewLine };
            string[] lines = animtext.Split(stringSeparators, StringSplitOptions.None);
            StringBuilder updatedText =new StringBuilder();
            foreach (string line in lines)
            {
                if (!line.Contains(" Time " + time.ToString() + " "))
                    updatedText.AppendLine(line);
            }
            tbAnimationDescription.Text = updatedText.ToString();
        }