
# IServerDocumentView interface

The `IServerDocumentView` represents either the document view or one of the associated panel views in Altium Designer. This interface is inherited from the [`IServerView`](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerView.md) interface.

```csharp
public interface IServerDocumentView : IServerView
```

**Namespace:** DXP · **Assembly:** Altium.SDK.Interfaces

**Inherits:** [IExternalForm](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IExternalForm.md) → [IServerView](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerView.md)

**Derived:** [IMBA2_SDK_DocumentView](https://altiumdeveloper.github.io/ad-sdk-docs/reference/edp/IMBA2_SDK_DocumentView.md), [INexusDevicesView](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/INexusDevicesView.md)

## Remarks

The [`IServerDocument`](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerDocument.md) interface contains `IServerDocumentView` interfaces, that is, a design document open in Altium Designer contains links to a document view and at least one panel view.

[`IServerView`](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerView.md) interface

`IServerDocumentView` interface

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [GetOwnerDocument](#getownerdocument) | [IServerDocument](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerDocument.md) | The OwnerDocument property returns the [`IServerDocument`](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerDocument.md) interface that the `IServerDocumentView` itnerface is associated with. |
| [PerformAutoZoom](#performautozoom) | `void` | This method forces a refresh or repaint of the document / panel view. |
| [UpdateStatusBar](#updatestatusbar) | `void` | This method forces an update of the status bar when a string is submitted to the status bar. |

### GetOwnerDocument

The OwnerDocument property returns the [`IServerDocument`](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerDocument.md) interface that the `IServerDocumentView` itnerface is associated with. An [`IServerDocument`](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerDocument.md) container stores `IServerDocumentView` interfaces which represent a document or panel view.

```csharp
IServerDocument GetOwnerDocument();
```

**Returns:** [IServerDocument](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerDocument.md)

Extension method of `IServerDocumentViewHelper` (`using DXP;`).

This read only property is supported by the `GetOwnerDocument` method.

This property returns the [`IServerDocument`](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerDocument.md) interface that the `IServerDocumentView` interface is associated with. An [`IServerDocument`](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerDocument.md) container stores `IServerDocumentView` interfaces which represent a document or panel view.

**See also:** [IClient](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IClient.md), [IExternalForm](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IExternalForm.md)

**Examples:** [Extension_PCBToImage](https://github.com/AltiumDeveloper/ad-sdk-examples/blob/5b144f54740a53ec578b3b6c3f902b831e0b1144/Extension_PCBToImage/Source%20Code/Commands.cs#L84)

### PerformAutoZoom

This method forces a refresh or repaint of the document / panel view.

```csharp
void PerformAutoZoom();
```

**Returns:** nothing (`void`)

**See also:** [IClient](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IClient.md)

**Examples:** [Extension_ModifySchWireColor](https://github.com/AltiumDeveloper/ad-sdk-examples/blob/5b144f54740a53ec578b3b6c3f902b831e0b1144/Extension_ModifySchWireColor/Source%20Code/Commands.cs#L63)

### UpdateStatusBar

This method forces an update of the status bar when a string is submitted to the status bar.

```csharp
void UpdateStatusBar();
```

**Returns:** nothing (`void`)

**See also:** [IClient](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IClient.md)

## Inherited members

- From [IServerView](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerView.md): [GetFavoritesViewState](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerView.md#getfavoritesviewstate), [GetIsPanel](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerView.md#getispanel), [GetViewName](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerView.md#getviewname), [ReceiveNotification](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerView.md#receivenotification), [SetFavoritesViewState](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerView.md#setfavoritesviewstate), [ViewState](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerView.md#viewstate)
- From [IExternalForm](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IExternalForm.md): [FocusFirstTabStop](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IExternalForm.md#focusfirsttabstop), [GetBounds](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IExternalForm.md#getbounds), [GetCaption](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IExternalForm.md#getcaption), [GetHandle](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IExternalForm.md#gethandle), [Hide](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IExternalForm.md#hide), [ParentWindowCreated](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IExternalForm.md#parentwindowcreated), [ParentWindowDestroyed](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IExternalForm.md#parentwindowdestroyed), [SetBounds](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IExternalForm.md#setbounds), [SetFocus](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IExternalForm.md#setfocus), [SetParentWindow](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IExternalForm.md#setparentwindow), [Show](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IExternalForm.md#show)

## Returned by

[IClient.CurrentView](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IClient.md#currentview), [IServerDocument.GetSnippetView](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerDocument.md#getsnippetview), [IServerDocument.GetView](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerDocument.md#getview), [IServerDocument.GetViewByName](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerDocument.md#getviewbyname), [IServerModule.CreateServerDocView](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerModule.md#createserverdocview)

## Accepted by

[IClient.AddViewToFavorites](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IClient.md#addviewtofavorites), [ICommandGetState.GetState](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/ICommandGetState.md#getstate), [ICommandLauncher.GetCommandState](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/ICommandLauncher.md#getcommandstate), [ICommandLauncher.LaunchCommand](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/ICommandLauncher.md#launchcommand), [IEDMSItemEditorCommands.Command_LinkToReleaseVault](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IEDMSItemEditorCommands.md#command_linktoreleasevault), [IEDMSItemEditorCommands.Command_ReleaseToVault](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IEDMSItemEditorCommands.md#command_releasetovault), [IEDesignDataCommands.Command_ConfigureInstalledVaults](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IEDesignDataCommands.md#command_configureinstalledvaults), [IEDesignDataCommands.Command_FocusVault](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IEDesignDataCommands.md#command_focusvault), [IEDesignDataCommands.Command_RefreshCurrentView](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IEDesignDataCommands.md#command_refreshcurrentview), [IEDesignDataCommands.GetState_ConfigureInstalledVaults](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IEDesignDataCommands.md#getstate_configureinstalledvaults), [IEDesignDataCommands.GetState_FocusVault](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IEDesignDataCommands.md#getstate_focusvault), [IEDesignDataCommands.GetState_RefreshCurrentView](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IEDesignDataCommands.md#getstate_refreshcurrentview), [IProcessLauncher.GetCommandState](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IProcessLauncher.md#getcommandstate), [IProcessLauncher.PostMessage](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IProcessLauncher.md#postmessage), [IProcessLauncher.SendMessage](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IProcessLauncher.md#sendmessage), [IServerDocument.AddView](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerDocument.md#addview), [IServerDocument.CanCreateSnippet](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerDocument.md#cancreatesnippet), [IServerDocument.CreateSnippetFile](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerDocument.md#createsnippetfile), [IServerDocument.PlaceSnippet](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerDocument.md#placesnippet), [IServerModuleActionsSupport.SetServerDocumentView](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IServerModuleActionsSupport.md#setserverdocumentview), [Utils.MessageRouterGetCommandEnabled](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/Utils.md#messageroutergetcommandenabled), [Utils.MessageRouterGetCommandState](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/Utils.md#messageroutergetcommandstate), [Utils.MessageRouterPostCommandToModule](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/Utils.md#messagerouterpostcommandtomodule), [Utils.MessageRouterSendCommandToModule](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/Utils.md#messageroutersendcommandtomodule)

## Examples

Used in the SDK examples: [Ciiva](https://github.com/AltiumDeveloper/ad-sdk-examples/blob/5b144f54740a53ec578b3b6c3f902b831e0b1144/Ciiva/Source%20Code/Commands.cs#L14), [Ciiva](https://github.com/AltiumDeveloper/ad-sdk-examples/blob/5b144f54740a53ec578b3b6c3f902b831e0b1144/Ciiva/Source%20Code/Main.cs#L71), [Extension_AddVariant](https://github.com/AltiumDeveloper/ad-sdk-examples/blob/5b144f54740a53ec578b3b6c3f902b831e0b1144/Extension_AddVariant/Source%20Code/Commands.cs#L16), [Extension_AddVariant](https://github.com/AltiumDeveloper/ad-sdk-examples/blob/5b144f54740a53ec578b3b6c3f902b831e0b1144/Extension_AddVariant/Source%20Code/Main.cs#L49), [Extension_BOMManager](https://github.com/AltiumDeveloper/ad-sdk-examples/blob/5b144f54740a53ec578b3b6c3f902b831e0b1144/Extension_BOMManager/Source%20Code/Commands.cs#L16), [Extension_BOMManager](https://github.com/AltiumDeveloper/ad-sdk-examples/blob/5b144f54740a53ec578b3b6c3f902b831e0b1144/Extension_BOMManager/Source%20Code/Main.cs#L49), [Extension_ChangeOutputJobFile](https://github.com/AltiumDeveloper/ad-sdk-examples/blob/5b144f54740a53ec578b3b6c3f902b831e0b1144/Extension_ChangeOutputJobFile/Source%20Code/Commands.cs#L16), [Extension_ChangeOutputJobFile](https://github.com/AltiumDeveloper/ad-sdk-examples/blob/5b144f54740a53ec578b3b6c3f902b831e0b1144/Extension_ChangeOutputJobFile/Source%20Code/Main.cs#L49), [Extension_CreatePCBLib](https://github.com/AltiumDeveloper/ad-sdk-examples/blob/5b144f54740a53ec578b3b6c3f902b831e0b1144/Extension_CreatePCBLib/Source%20Code/Commands.cs#L15), [Extension_CreatePCBLib](https://github.com/AltiumDeveloper/ad-sdk-examples/blob/5b144f54740a53ec578b3b6c3f902b831e0b1144/Extension_CreatePCBLib/Source%20Code/Main.cs#L49), [Extension_CreateProject](https://github.com/AltiumDeveloper/ad-sdk-examples/blob/5b144f54740a53ec578b3b6c3f902b831e0b1144/Extension_CreateProject/Source%20Code/Commands.cs#L16), [Extension_CreateProject](https://github.com/AltiumDeveloper/ad-sdk-examples/blob/5b144f54740a53ec578b3b6c3f902b831e0b1144/Extension_CreateProject/Source%20Code/Main.cs#L49).
