In This Article

EditorDocumentViewer Class

Represents a DocumentViewer that has some modifications for viewing an IEditorDocument.

public class EditorDocumentViewer : DocumentViewer, IServiceProvider
Inheritance:
object Visual UIElement FrameworkElement Control DocumentViewerBase DocumentViewer object
Implements:
IServiceProvider

Constructors

EditorDocumentViewer()

Initializes a new instance of the EditorDocumentViewer class.

public EditorDocumentViewer()

Properties

SyntaxEditor

Gets or sets the SyntaxEditor that owns the document.

public SyntaxEditor SyntaxEditor { get; set; }

Property Value

SyntaxEditor:

The SyntaxEditor that owns the document.

Methods

OnApplyTemplate()

Invoked whenever application code or internal processes call ApplyTemplate().

public override void OnApplyTemplate()

OnPrintCommand()

Occurs when the print command is executed.

protected override void OnPrintCommand()