Vocaluxe.Lib.Song.CLine.ReplaceNote C# (CSharp) Method

ReplaceNote() public method

public ReplaceNote ( int Index, CNote Note ) : bool
Index int
Note CNote
return bool
        public bool ReplaceNote(int Index, CNote Note)
        {
            if (_Notes.Count > Index)
            {
                _Notes.RemoveAt(Index);
                _Notes.Insert(Index, Note);
                updateMinMaxBeat();
                return true;
            }
            return false;
        }