
# ServerDocument class

*No description yet.*

```csharp
public class ServerDocument : SupportService, IServerDocument, IServerDocument2
```

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

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

## Constructors

```csharp
public ServerDocument(IServerModule argServerModule, string argKind, string argFileName);
```

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [AcquireDataFileHandle](#acquiredatafilehandle) | `void` |  |
| [AcquireFileOwnership](#acquirefileownership) | `void` |  |
| [AddView](#addview) | `void` |  |
| [CanCreateSnippet](#cancreatesnippet) | `bool` |  |
| [CanPlaceSnippet](#canplacesnippet) | `bool` |  |
| [CreateSnippetFile](#createsnippetfile) | `bool` |  |
| [DocumentDirectoryChanged](#documentdirectorychanged) | `void` |  |
| [DoFileLoad](#dofileload) | `bool` |  |
| [DoFileSave](#dofilesave) | `bool` |  |
| [DoSafeChangeFileNameAndSave](#dosafechangefilenameandsave) | `bool` |  |
| [DoSafeFileSave](#dosafefilesave) | `bool` |  |
| [Focus](#focus) | `void` |  |
| [GetBeingClosed](#getbeingclosed) | `bool` |  |
| [GetCanClose](#getcanclose) | `bool` |  |
| [GetContextHelpTopicName](#getcontexthelptopicname) | `string` |  |
| [GetCount](#getcount) | `int` |  |
| [GetDisplayName](#getdisplayname) | `string` |  |
| [GetDocumentModifiedDate](#getdocumentmodifieddate) | `double` |  |
| [GetFileModifiedDate](#getfilemodifieddate) | `double` |  |
| [GetFileName](#getfilename) | `string` |  |
| [GetIsShown](#getisshown) | `bool` |  |
| [GetKind](#getkind) | `string` |  |
| [GetModified](#getmodified) | `bool` |  |
| [GetOpenDocumentId](#getopendocumentid) | `string` |  |
| [GetSupportsOwnSave](#getsupportsownsave) | `bool` |  |
| [Internal_GetServerModule](#internal_getservermodule) | `object` |  |
| [Internal_GetSnippetView](#internal_getsnippetview) | `object` |  |
| [Internal_GetView](#internal_getview) | `object` |  |
| [Internal_GetViewByName](#internal_getviewbyname) | `object` |  |
| [NotifyViews](#notifyviews) | `void` |  |
| [OwnsFile](#ownsfile) | `bool` |  |
| [PlaceSnippet](#placesnippet) | `void` |  |
| [ReleaseDataFileHandle](#releasedatafilehandle) | `void` |  |
| [ReleaseFileOwnership](#releasefileownership) | `void` |  |
| [RemoveView](#removeview) | `void` |  |
| [SetBeingClosed](#setbeingclosed) | `void` |  |
| [SetDisplayName](#setdisplayname) | `void` |  |
| [SetFileModifiedDate](#setfilemodifieddate) | `void` |  |
| [SetFileName](#setfilename) | `string` |  |
| [SetIsShown](#setisshown) | `void` |  |
| [SetModified](#setmodified) | `void` |  |
| [SupportsReload](#supportsreload) | `bool` |  |
| [UpdateModifiedDate](#updatemodifieddate) | `void` |  |
| [WarnIfOwnedByOther](#warnifownedbyother) | `bool` |  |
| [ZoomSnippetContents](#zoomsnippetcontents) | `void` |  |

### AcquireDataFileHandle

*No description yet.*

```csharp
void AcquireDataFileHandle();
```

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

### AcquireFileOwnership

*No description yet.*

```csharp
void AcquireFileOwnership();
```

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

### AddView

*No description yet.*

```csharp
void AddView(object argView);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argView` | `object` | value |

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

### CanCreateSnippet

*No description yet.*

```csharp
bool CanCreateSnippet(object argView, int argMode, bool argContextSensitive);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argView` | `object` | value |
| `argMode` | `int` | value |
| `argContextSensitive` | `bool` | value |

**Returns:** `bool`

### CanPlaceSnippet

*No description yet.*

```csharp
bool CanPlaceSnippet(string argSnippetPath);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argSnippetPath` | `string` | value |

**Returns:** `bool`

### CreateSnippetFile

*No description yet.*

```csharp
bool CreateSnippetFile(object argView, string argSnippetFilePath, int argMode, bool argContextSensitive);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argView` | `object` | value |
| `argSnippetFilePath` | `string` | value |
| `argMode` | `int` | value |
| `argContextSensitive` | `bool` | value |

**Returns:** `bool`

### DocumentDirectoryChanged

*No description yet.*

```csharp
void DocumentDirectoryChanged();
```

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

### DoFileLoad

*No description yet.*

```csharp
bool DoFileLoad();
```

**Returns:** `bool`

### DoFileSave

*No description yet.*

```csharp
bool DoFileSave(string argKind);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argKind` | `string` | value |

**Returns:** `bool`

### DoSafeChangeFileNameAndSave

*No description yet.*

```csharp
bool DoSafeChangeFileNameAndSave(string argNewFileName, string argKind);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argNewFileName` | `string` | value |
| `argKind` | `string` | value |

**Returns:** `bool`

### DoSafeFileSave

*No description yet.*

```csharp
bool DoSafeFileSave(string argKind);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argKind` | `string` | value |

**Returns:** `bool`

### Focus

*No description yet.*

```csharp
void Focus();
```

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

### GetBeingClosed

*No description yet.*

```csharp
bool GetBeingClosed();
```

**Returns:** `bool`

### GetCanClose

*No description yet.*

```csharp
bool GetCanClose();
```

**Returns:** `bool`

### GetContextHelpTopicName

*No description yet.*

```csharp
string GetContextHelpTopicName();
```

**Returns:** `string`

### GetCount

*No description yet.*

```csharp
int GetCount();
```

**Returns:** `int`

### GetDisplayName

*No description yet.*

```csharp
string GetDisplayName();
```

**Returns:** `string`

### GetDocumentModifiedDate

*No description yet.*

```csharp
double GetDocumentModifiedDate();
```

**Returns:** `double`

### GetFileModifiedDate

*No description yet.*

```csharp
double GetFileModifiedDate();
```

**Returns:** `double`

### GetFileName

*No description yet.*

```csharp
string GetFileName();
```

**Returns:** `string`

### GetIsShown

*No description yet.*

```csharp
bool GetIsShown();
```

**Returns:** `bool`

### GetKind

*No description yet.*

```csharp
string GetKind();
```

**Returns:** `string`

### GetModified

*No description yet.*

```csharp
bool GetModified();
```

**Returns:** `bool`

### GetOpenDocumentId

*No description yet.*

```csharp
string GetOpenDocumentId();
```

**Returns:** `string`

### GetSupportsOwnSave

*No description yet.*

```csharp
bool GetSupportsOwnSave();
```

**Returns:** `bool`

### Internal_GetServerModule

*No description yet.*

```csharp
object Internal_GetServerModule();
```

**Returns:** `object`

### Internal_GetSnippetView

*No description yet.*

```csharp
object Internal_GetSnippetView();
```

**Returns:** `object`

### Internal_GetView

*No description yet.*

```csharp
object Internal_GetView(int argIndex);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argIndex` | `int` | value |

**Returns:** `object`

### Internal_GetViewByName

*No description yet.*

```csharp
object Internal_GetViewByName(string argViewName);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argViewName` | `string` | value |

**Returns:** `object`

### NotifyViews

*No description yet.*

```csharp
void NotifyViews(object argNotification);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argNotification` | `object` | value |

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

### OwnsFile

*No description yet.*

```csharp
bool OwnsFile();
```

**Returns:** `bool`

### PlaceSnippet

*No description yet.*

```csharp
void PlaceSnippet(string argSnippetAddress, object argView);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argSnippetAddress` | `string` | value |
| `argView` | `object` | value |

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

### ReleaseDataFileHandle

*No description yet.*

```csharp
void ReleaseDataFileHandle();
```

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

### ReleaseFileOwnership

*No description yet.*

```csharp
void ReleaseFileOwnership();
```

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

### RemoveView

*No description yet.*

```csharp
void RemoveView(object argView);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argView` | `object` | value |

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

### SetBeingClosed

*No description yet.*

```csharp
void SetBeingClosed(bool argValue);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argValue` | `bool` | value |

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

### SetDisplayName

*No description yet.*

```csharp
void SetDisplayName(string argValue);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argValue` | `string` | value |

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

### SetFileModifiedDate

*No description yet.*

```csharp
void SetFileModifiedDate(double argValue);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argValue` | `double` | value |

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

### SetFileName

*No description yet.*

```csharp
string SetFileName(string argFileName);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argFileName` | `string` | value |

**Returns:** `string`

### SetIsShown

*No description yet.*

```csharp
void SetIsShown(bool argValue);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argValue` | `bool` | value |

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

### SetModified

*No description yet.*

```csharp
void SetModified(bool argValue);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argValue` | `bool` | value |

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

### SupportsReload

*No description yet.*

```csharp
bool SupportsReload();
```

**Returns:** `bool`

### UpdateModifiedDate

*No description yet.*

```csharp
void UpdateModifiedDate();
```

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

### WarnIfOwnedByOther

*No description yet.*

```csharp
bool WarnIfOwnedByOther(int argWarningLevel);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argWarningLevel` | `int` | value |

**Returns:** `bool`

### ZoomSnippetContents

*No description yet.*

```csharp
void ZoomSnippetContents();
```

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