NEW YORK (AP) -- Former Fox News anchor Gretchen Carlson settled her sexual harassment lawsuit against Roger Ailes for a reported $20 million and a public apology Tuesday, ending the case that triggered the downfall of the cable channel's chief executive.
Carlson alleged in a lawsuit filed two months ago that she was demoted and let go at Fox because she rejected Ailes' sexual advances and complained about workplace harassment.
In a statement, Fox parent company 21st Century Fox said: "We regret and apologize for the fact that Gretchen was not treated with the respect and dignity that she and all of our colleagues deserve."
Carlson was paid $20 million, according to a person familiar with the settlement who spoke on condition of anonymity because the terms of the agreement were confidential. Ailes did not pay any of the settlement, said his lawyer, Susan Estrich.
Carlson, a former Miss America, spent several years on the "Fox & Friends" morning show before being shifted to the afternoon in 2013. She was told in June that her contract wasn't being renewed.
Carlson said she is ready to move on to the next chapter in her life and promised to work to help women in the workplace. She thanked "all the brave women" who came forward to tell their own stories and others who supported her.
"All women deserve a dignified and respectful workplace," she said.
Ailes, 76, denied Carlson's allegations when the lawsuit was filed. He had no comment Tuesday.
Also Tuesday, Fox News announced the surprise departure of Greta Van Susteren from a nighttime lineup that has been one of the most successful and stable in cable news.
Van Susteren, who would have marked 15 years with the network in January, said on Facebook that Fox "has not felt like home to me for a few years." She did not elaborate. She has been temporarily replaced by Brit Hume.
Carlson had alleged that Ailes told her in a meeting, "You and I should have had a sexual relationship a long time ago." She said he ogled her, repeatedly commented about her legs and urged her to wear clothes that enhanced her figure.
New York magazine reported last week that Carlson began taking her iPhone into meetings with Ailes in 2014 and secretly recording their conversations.
Carlson's case led 21st Century Fox to launch its own investigation, and other women came forward with stories of being sexually harassed by Ailes, including Fox News star Megyn Kelly. A few women told their stories publicly.
Two weeks later, Ailes was gone, reportedly with a $40 million payout. He is said to be informally advising Republican presidential candidate Donald Trump.
Carl Tobias, a professor at the University of Richmond School of Law, said the Carlson case could have a significant effect on the workplace as a deterrent against harassment and would make employers take such complaints from employees more seriously.
Ailes was hired by Rupert Murdoch to create Fox News from scratch in 1996. He built it into a dominant news network and a force in Republican politics.