Calls func for each key-value pair of this.
func
a PrintSettings
the function to call
user data for func