add a format property

add a format property,invoke it before render.