private void ItalicExecuted(object sender, ExecutedRoutedEventArgs e) { if (htmldoc != null) { htmldoc.Italic(); } }