Document expandTo method