Export (0) Print
Expand All
Expand Minimize

DocumentBase.AddToFavorites Method

Creates a shortcut to the document and adds it to the Favorites folder.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

public void AddToFavorites()

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();
}

Show:
© 2014 Microsoft