public System.PageReference setAnchor(String anchor)
Type: System.PageReference
For example, https://Salesforce_instance/apex/my_page#anchor1.