Skip to main content

Get the subeditor view

The subeditor view can be obtained using the SubEditorView property of the IEditorPage object. The IEditorPage object can be obtained using the IWorkspaceWindow.EditorPage property.

public void SomeCommand(ICommandContext c, ICommandParams p) 
{
//Get the subeditor view
IEditorView subEditorView = c.App.Window.EditorPage?.SubEditorView;

//...
}