WebBrowser.CanGoBack Proprietà

Definizione

Ottiene un valore che indica se è presente un documento a cui tornare.

public:
 property bool CanGoBack { bool get(); };
public bool CanGoBack { get; }
member this.CanGoBack : bool
Public ReadOnly Property CanGoBack As Boolean

Valore della proprietà

Valore Boolean che indica se è presente un documento a cui tornare.

Esempio

Nell'esempio seguente viene illustrato come tornare al documento precedente chiamando GoBack. Nell'esempio viene prima verificato che siano presenti documenti a cui tornare controllando CanGoBack.

private void backButton_Click(object sender, RoutedEventArgs e)
{
  // Navigate to the previous HTML document, if there is one
  if (this.webBrowser.CanGoBack)
  {
    this.webBrowser.GoBack();
  }
}

Si applica a

Vedi anche