by using successive husbands and their families margaret had given herself considerable standing and had come to be the leading lancastrian at court , her latest husband , thomas stanley , was a notable yorkist magnate .