Set 2 properties at once.