DocumentBase.AddToFavorites Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a shortcut to the document and adds it to the Favorites folder.
public void AddToFavorites ();
Examples
The following code example adds the current document to the Favorites folder. To use this example, run it from the ThisDocument class in a document-level project.
private void DocumentAddToFavorites()
{
this.AddToFavorites();
}
Private Sub DocumentAddToFavorites()
Me.AddToFavorites()
End Sub