I use canvas to build a float ,this float can change position of top or bottom with a button.
How can I set and get margin value of canvas?

so poor english..