Share via


DocumentBase.AddToFavorites Method

Definition

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

public:
 void AddToFavorites();
public void AddToFavorites ();
member this.AddToFavorites : unit -> unit
Public Sub 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

Applies to