Open this page in the API Guide

Canvas.alignTo Method