Add a setting of the appropriate type and then simply get it and set it like you do any other property. That's all there is to it.