> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class Api

Namespace: [VM.Managed.DAFUL.Pre](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre)\
Assembly: dfpreAPI.dll

This class is to represent API for DAFUL.

```csharp theme={null}
public class Api : IPre, IMainWindow
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Api](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.Api.md)

#### Implements

IPre,
IMainWindow

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Properties

### ActiveDocument

Gets the active document. \[Not Implementation]

```csharp theme={null}
public IDocument ActiveDocument { get; set; }
```

#### Property Value

IDocument

### ActiveDocumentViewModel

Gets the active DocumentViewModel

```csharp theme={null}
public IDocumentViewModel ActiveDocumentViewModel { get; }
```

#### Property Value

IDocumentViewModel

### ActiveModel

Gets the active model.

```csharp theme={null}
public Model ActiveModel { get; }
```

#### Property Value

Model

### ActiveWork

Gets the active work.

```csharp theme={null}
public Work ActiveWork { get; }
```

#### Property Value

Work

### ApplicationCore

Gets the application core.

```csharp theme={null}
public Application ApplicationCore { get; }
```

#### Property Value

Application

### DialogManager

Gets the dialog manager.

```csharp theme={null}
public IDlgManager DialogManager { get; }
```

#### Property Value

IDlgManager

### GlobalJournal

Gets the global journal.

```csharp theme={null}
public JournalRecorder GlobalJournal { get; }
```

#### Property Value

JournalRecorder

### KerenlTranslatorMessageWriter

```csharp theme={null}
public Action<string> KerenlTranslatorMessageWriter { get; set; }
```

#### Property Value

[Action](https://learn.microsoft.com/dotnet/api/system.action-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)>

### KernelMessageWriter

Messagen output action for the kernel message

```csharp theme={null}
public Action<string> KernelMessageWriter { get; set; }
```

#### Property Value

[Action](https://learn.microsoft.com/dotnet/api/system.action-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)>

### LocalJournal

Gets the local journal.

```csharp theme={null}
public JournalRecorder LocalJournal { get; }
```

#### Property Value

JournalRecorder

### MainWindow

Gets the main window. \[Not Implementation]

```csharp theme={null}
public IMainWindow MainWindow { get; }
```

#### Property Value

IMainWindow

### UnUseMRU

Gets or sets a value indicating whether \[un use MRU].

```csharp theme={null}
public bool UnUseMRU { get; set; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### Version

Gets the version.

```csharp theme={null}
public string Version { get; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### WriteDFG

Gets or sets the WriteDFG flag. \[Not Implementation]

```csharp theme={null}
public bool WriteDFG { get; set; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

## Methods

### ActiveDocChanged()

Activate changed document.

```csharp theme={null}
public void ActiveDocChanged()
```

### ActiveViewChanged()

Activate changed view.

```csharp theme={null}
public void ActiveViewChanged()
```

### AutoSave()

Auto save. \[Not Implementation]

```csharp theme={null}
public void AutoSave()
```

### CanSimulation(bool)

Determines whether this instance can simulation the specified can. \[Not Implementation]

```csharp theme={null}
public void CanSimulation(bool bCan)
```

#### Parameters

`bCan` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

if set to `true` \[can].

### ClearMessage(string)

Clear Message. \[Not Implementation]

```csharp theme={null}
public void ClearMessage(string strName)
```

#### Parameters

`strName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name.

### CloseAllFile()

Closes all file.

```csharp theme={null}
public void CloseAllFile()
```

### CloseAllFileExceptWork()

Closes all file except work.

```csharp theme={null}
public void CloseAllFileExceptWork()
```

### CloseDocument(Document)

Closes the file.

```csharp theme={null}
public bool CloseDocument(Document doc)
```

#### Parameters

`doc` Document

The [Document](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.Document.md) to close.

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### CloseFile(string)

Closes the file.

```csharp theme={null}
public bool CloseFile(string strFileName)
```

#### Parameters

`strFileName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the file.

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

`true` if success; otherwise, `false`.

### CloseFile(string, bool)

Closes the file.

```csharp theme={null}
public bool CloseFile(string strFileName, bool bUseWork)
```

#### Parameters

`strFileName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the STR file.

`bUseWork` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

if set to `true` \[b use work].

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### CloseFile(string, bool, bool)

Closes the file.

```csharp theme={null}
public bool CloseFile(string strFileName, bool bUseWork, bool bActivate)
```

#### Parameters

`strFileName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the string file.

`bUseWork` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

if set to `true` \[b use work].

`bActivate` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

if set to `true` \[b activate].

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### CloseHiddenFile(string)

Closes the hidden file.

```csharp theme={null}
public bool CloseHiddenFile(string strFileName)
```

#### Parameters

`strFileName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the string file.

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### CloseWork()

Close work.

```csharp theme={null}
public void CloseWork()
```

### CreateDocument(string)

Creates the document.

```csharp theme={null}
public Document CreateDocument(string strFileName)
```

#### Parameters

`strFileName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the file.

#### Returns

Document

The document.

### CreateDocument(string, bool)

Creates the document.

```csharp theme={null}
public Document CreateDocument(string strFileName, bool bActivate)
```

#### Parameters

`strFileName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the file.

`bActivate` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

if set to `true` \[b activate].

#### Returns

Document

The document.

### CreateDocument(string, bool, string)

Creates the document.

```csharp theme={null}
public Document CreateDocument(string strFileName, bool bActivate, string strDocCreateInfo)
```

#### Parameters

`strFileName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the STR file.

`bActivate` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

if set to `true` \[b activate].

`strDocCreateInfo` [string](https://learn.microsoft.com/dotnet/api/system.string)

The STR doc create info.

#### Returns

Document

### CreateDocument(string, bool, string, bool)

Creates the document.

```csharp theme={null}
public Document CreateDocument(string strFileName, bool bActivate, string strDocCreateInfo, bool bDesigner)
```

#### Parameters

`strFileName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the string file.

`bActivate` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

if set to `true` \[b activate].

`strDocCreateInfo` [string](https://learn.microsoft.com/dotnet/api/system.string)

The string document create information.

`bDesigner` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

if set to `true` \[b designer].

#### Returns

Document

### Dispose(bool)

```csharp theme={null}
protected virtual void Dispose(bool disposing)
```

#### Parameters

`disposing` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### Dispose()

```csharp theme={null}
public void Dispose()
```

### EndOutput(string)

Ends the output. \[Not Implementation]

```csharp theme={null}
public void EndOutput(string strName)
```

#### Parameters

`strName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name.

### \~Api()

Releases unmanaged resources and performs other cleanup operations before the
[Api](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.Api.md) is reclaimed by garbage collection.

```csharp theme={null}
protected ~Api()
```

### Fit(string)

Fits this instance.

```csharp theme={null}
public void Fit(string strPathName)
```

#### Parameters

`strPathName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the string path.

### GetAllOpenDocument()

Gets all opend document.

```csharp theme={null}
public List<Document> GetAllOpenDocument()
```

#### Returns

[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<Document>

### GetDocumentFromOpenedDocument(string)

Gets the document from opened document.

```csharp theme={null}
public Document GetDocumentFromOpenedDocument(string strFileName)
```

#### Parameters

`strFileName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the file.

#### Returns

Document

### GetMode()

Gets the mode.

```csharp theme={null}
public string GetMode()
```

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

The mode type

### IsOpenDocument(string)

Determines whether \[is open document] \[the specified STR file name].

```csharp theme={null}
public bool IsOpenDocument(string strFileName)
```

#### Parameters

`strFileName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the file.

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

`true` if \[is open document] \[the specified STR file name]; otherwise, `false`.

### IsRunningSimulation()

Determines whether \[is running simulation].

```csharp theme={null}
public bool IsRunningSimulation()
```

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### NewFile(NewFile)

New file.

```csharp theme={null}
public void NewFile(NewFile nf)
```

#### Parameters

`nf` NewFile

The new file information.

### NewModel(NewModel)

New model.

```csharp theme={null}
public void NewModel(NewModel nM)
```

#### Parameters

`nM` NewModel

The new model information.

### OpenDocument(string)

Opens the document.

```csharp theme={null}
public Document OpenDocument(string strFileName)
```

#### Parameters

`strFileName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the file.

#### Returns

Document

The document.

### OpenDocument(string, bool)

Opens the document.

```csharp theme={null}
public Document OpenDocument(string strFileName, bool bActivate)
```

#### Parameters

`strFileName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the file.

`bActivate` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

if set to `true` \[b activate].

#### Returns

Document

The document.

### OpenDocument(string, string, bool)

Opens the document.

```csharp theme={null}
public Document OpenDocument(string strFileName, string strRelatedPath, bool bActivate)
```

#### Parameters

`strFileName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the STR file.

`strRelatedPath` [string](https://learn.microsoft.com/dotnet/api/system.string)

The STR related path.

`bActivate` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

if set to `true` \[b activate].

#### Returns

Document

### OpenDocumentFile(string)

Opens the document file.

```csharp theme={null}
public Document OpenDocumentFile(string strFileName)
```

#### Parameters

`strFileName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the STR file.

#### Returns

Document

### OpenFile(string, string)

Opens the file.

```csharp theme={null}
public GroupItem OpenFile(string strFileName, string strRefDir)
```

#### Parameters

`strFileName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the file.

`strRefDir` [string](https://learn.microsoft.com/dotnet/api/system.string)

The reference directory.

#### Returns

GroupItem

The file information class.

### OpenFileDialogAsMainWindow(OpenFileDialogInfo)

Opens the file dialog as main window. \[Not Implementation]

```csharp theme={null}
public string OpenFileDialogAsMainWindow(OpenFileDialogInfo info)
```

#### Parameters

`info` OpenFileDialogInfo

The info.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

the file name

### OpenHiddenDocument(object)

Opens the hidden document.

```csharp theme={null}
public Document OpenHiddenDocument(object obj)
```

#### Parameters

`obj` [object](https://learn.microsoft.com/dotnet/api/system.object)

The object.

#### Returns

Document

### OpenModel(string)

Opens the model.

```csharp theme={null}
public Model OpenModel(string strFileName)
```

#### Parameters

`strFileName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the file.

#### Returns

Model

The model.

### OpenWork(string)

Opens the work.

```csharp theme={null}
public Work OpenWork(string strFileName)
```

#### Parameters

`strFileName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the STR file.

#### Returns

Work

### PrepareSimulation()

Prepares the simulation. \[Not Implementation]

```csharp theme={null}
public bool PrepareSimulation()
```

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

`true` if success; otherwise, `false`.

### ReadAllText(string, string)

Reads all text. \[Not Implementation]

```csharp theme={null}
public void ReadAllText(string strPath, string strName)
```

#### Parameters

`strPath` [string](https://learn.microsoft.com/dotnet/api/system.string)

The path.

`strName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name.

### ReadAllText(string, string, bool)

Reads all text.

```csharp theme={null}
public void ReadAllText(string strPath, string strName, bool bDeleteFIle)
```

#### Parameters

`strPath` [string](https://learn.microsoft.com/dotnet/api/system.string)

The STR path.

`strName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the STR.

`bDeleteFIle` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

if set to `true` \[b delete F ile].

### SaveAllFile()

Saves all file.

```csharp theme={null}
public SaveAllResult SaveAllFile()
```

#### Returns

SaveAllResult

### SaveFile()

Save the file.

```csharp theme={null}
public void SaveFile()
```

### SaveFile(string)

Saves the file.

```csharp theme={null}
public void SaveFile(string strPath)
```

#### Parameters

`strPath` [string](https://learn.microsoft.com/dotnet/api/system.string)

The path.

### SaveFile(Document, string)

Saves the file.

```csharp theme={null}
public void SaveFile(Document doc, string strFileName)
```

#### Parameters

`doc` Document

The doc.

`strFileName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the STR file.

### SaveFile(Document, string, bool)

Saves the file.

```csharp theme={null}
[Obsolete("This method is obsolete, use SaveFile(VM.Managed.Document doc, string strFileName) instead.")]
public void SaveFile(Document doc, string strFileName, bool bIgnoreExternChange)
```

#### Parameters

`doc` Document

The doc.

`strFileName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the STR file.

`bIgnoreExternChange` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

if set to `true` \[b ignore extern change].

### SaveFile(Document)

Saves the file.

```csharp theme={null}
public void SaveFile(Document doc)
```

#### Parameters

`doc` Document

The document to save.

### SaveFileDialogAsMainWindow(SaveFileDialogInfo)

Saves the file dialog as main window. \[Not Implementation]

```csharp theme={null}
public string SaveFileDialogAsMainWindow(SaveFileDialogInfo info)
```

#### Parameters

`info` SaveFileDialogInfo

The info.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

the file name

### SaveModel(string)

Saves the model.

```csharp theme={null}
public void SaveModel(string strFileName)
```

#### Parameters

`strFileName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the file.

### SaveWork(string)

Saves the work.

```csharp theme={null}
public void SaveWork(string strFileName)
```

#### Parameters

`strFileName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name of the file.

### SetEnableOfTabCtrl(object, bool)

Sets enable or disable of Tab..

```csharp theme={null}
public void SetEnableOfTabCtrl(object obj, bool bEnable)
```

#### Parameters

`obj` [object](https://learn.microsoft.com/dotnet/api/system.object)

The current document.

`bEnable` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

if set to `true` \[is enable].

### SetIntervalForAutoSize()

Sets the size of the interval for auto. \[Not Implementation]

```csharp theme={null}
public void SetIntervalForAutoSize()
```

### SetPathName(string, string)

Set path name.

```csharp theme={null}
public void SetPathName(string strOldPath, string strNewPath)
```

#### Parameters

`strOldPath` [string](https://learn.microsoft.com/dotnet/api/system.string)

The old path.

`strNewPath` [string](https://learn.microsoft.com/dotnet/api/system.string)

The new path.

### SetProgressState(int)

Set taskbar progress state.

```csharp theme={null}
public void SetProgressState(int nStats)
```

#### Parameters

`nStats` [int](https://learn.microsoft.com/dotnet/api/system.int32)

0x0 : NOPROGRESS, 0x1 : INDETERMINATE, 0x2 : NORMAL, 0x4 : ERROR, 0x8 : PAUSED

### SetProgressValue(ulong, ulong)

Set taskbar progress value.

```csharp theme={null}
public void SetProgressValue(ulong nCompleted, ulong nTotal)
```

#### Parameters

`nCompleted` [ulong](https://learn.microsoft.com/dotnet/api/system.uint64)

The completed value.

`nTotal` [ulong](https://learn.microsoft.com/dotnet/api/system.uint64)

The total value.

### SetSimulationParameters(string, string)

Sets the simulation parameters. \[Not Implementation]

```csharp theme={null}
public bool SetSimulationParameters(string strEndTime, string strStepSize)
```

#### Parameters

`strEndTime` [string](https://learn.microsoft.com/dotnet/api/system.string)

The end time.

`strStepSize` [string](https://learn.microsoft.com/dotnet/api/system.string)

Size of the step.

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

`true` if success; otherwise, `false`.

### SetStatusBar(string)

Set status bar.

```csharp theme={null}
public void SetStatusBar(string strMessage)
```

#### Parameters

`strMessage` [string](https://learn.microsoft.com/dotnet/api/system.string)

The message.

### Start()

Start Api instance

```csharp theme={null}
public static Api Start()
```

#### Returns

[Api](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.Api.md)

new Api instance

### Start(string, string)

Start Api instance.

```csharp theme={null}
public static Api Start(string strKernelPath, string strKernelCoreModulePath)
```

#### Parameters

`strKernelPath` [string](https://learn.microsoft.com/dotnet/api/system.string)

The kernel path.

`strKernelCoreModulePath` [string](https://learn.microsoft.com/dotnet/api/system.string)

The kernel core module path.

#### Returns

[Api](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.Api.md)

new Api instance

### Start(string, string, string, string)

Start Api instance.

```csharp theme={null}
public static Api Start(string strKernelPath, string strKernelCoreModulePath, string strTranslatorDir, string strHoopsExchangeDirectory)
```

#### Parameters

`strKernelPath` [string](https://learn.microsoft.com/dotnet/api/system.string)

The kernel path.

`strKernelCoreModulePath` [string](https://learn.microsoft.com/dotnet/api/system.string)

The kernel core module path.

`strTranslatorDir` [string](https://learn.microsoft.com/dotnet/api/system.string)

The translator directory.

`strHoopsExchangeDirectory` [string](https://learn.microsoft.com/dotnet/api/system.string)

The Hoops Exchange directory.

#### Returns

[Api](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.Api.md)

new Api instance

### Start(ApiStartOptions)

Start Api instance with given [ApiStartOptions](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.ApiStartOptions.md)

```csharp theme={null}
public static Api Start(ApiStartOptions options)
```

#### Parameters

`options` [ApiStartOptions](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.ApiStartOptions.md)

The [ApiStartOptions](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.ApiStartOptions.md).

#### Returns

[Api](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Pre.Api.md)

new Api instance

### StartOperationStatus()

Starts the operation status.

```csharp theme={null}
public void StartOperationStatus()
```

### StartOutput(string, string)

Starts the output. \[Not Implementation]

```csharp theme={null}
public void StartOutput(string strPath, string strName)
```

#### Parameters

`strPath` [string](https://learn.microsoft.com/dotnet/api/system.string)

The path.

`strName` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name.

### UseSession(string)

Get session object to menage operation session

```csharp theme={null}
public ISession UseSession(string strSessionName)
```

#### Parameters

`strSessionName` [string](https://learn.microsoft.com/dotnet/api/system.string)

The name of the session

#### Returns

ISession

The ISession?text=session object

### UseSession(IOperation)

Get session object to menage operation session

```csharp theme={null}
public ISession UseSession(IOperation operation)
```

#### Parameters

`operation` IOperation

The IOperation?text=operation will be executed.

#### Returns

ISession

The ISession?text=session object

### OnActiveDocumentChanged

Occurs when \[on active document changed]. \[Not Implementation]

```csharp theme={null}
public event EventHandler OnActiveDocumentChanged
```

#### Event Type

[EventHandler](https://learn.microsoft.com/dotnet/api/system.eventhandler)

### OnActiveViewChanged

Occurs when \[on active view changed]. \[Not Implementation]

```csharp theme={null}
public event EventHandler OnActiveViewChanged
```

#### Event Type

[EventHandler](https://learn.microsoft.com/dotnet/api/system.eventhandler)
