I would like to say the following sentence in French: That is kind of you to say.
Using Google translate I obtain C'est gentil à vous de dire. If this is the equivalent translation in French then I have a question. I do not understand why de is used. What grammatical rule is being used that causes de to be there?