You can change AutoscaleRate() only in the Designer.
You cannot access AutoscaleRate() from the code.
You could have a look at the AutoScale module.
You might read the chapters below in the Beginner's Guide:
8.9 Designer Scripts
8.10 AutoScale
8.11 UI Cloud