> ## 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 ProjectDocument

Namespace: [VM.Models](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models)\
Assembly: VM.Models.Project.dll

```csharp theme={null}
public sealed class ProjectDocument : ProjectObjectBase, IObservableObject, IProjectDocument, IProjectObject, IHasID, IHasName, IDisposableObject
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
ObservableObject ←
[ProjectObjectBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.ProjectObjectBase.md) ←
[ProjectDocument](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.ProjectDocument.md)

#### Implements

IObservableObject,
[IProjectDocument](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.IProjectDocument.md),
[IProjectObject](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.IProjectObject.md),
IHasID,
IHasName,
IDisposableObject

#### Inherited Members

[ProjectObjectBase.OnDeserialization(object)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.ProjectObjectBase.md#VM_Models_ProjectObjectBase_OnDeserialization_System_Object_),
[ProjectObjectBase.DisplayName](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.ProjectObjectBase.md#VM_Models_ProjectObjectBase_DisplayName),
[ProjectObjectBase.ID](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.ProjectObjectBase.md#VM_Models_ProjectObjectBase_ID),
[ProjectObjectBase.Name](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.ProjectObjectBase.md#VM_Models_ProjectObjectBase_Name),
ObservableObject.Dispose(),
ObservableObject.RaisePropertyChanged(string),
ObservableObject.RaisePropertyChanged(string, object, object),
ObservableObject.IsDisposed,
ObservableObject.TryDisposing,
ObservableObject.Disposed,
ObservableObject.Disposing,
ObservableObject.PropertyChanged

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/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-r1/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-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### ProjectDocument(string)

```csharp theme={null}
public ProjectDocument(string name)
```

#### Parameters

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

## Properties

### ID

```csharp theme={null}
public override Identifier ID { get; }
```

#### Property Value

Identifier

### Items

```csharp theme={null}
public IEnumerable<IScenario> Items { get; }
```

#### Property Value

[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[IScenario](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.IScenario.md)>

### RootPath

```csharp theme={null}
[Browsable(false)]
public string RootPath { get; set; }
```

#### Property Value

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

### ScenarioCount

```csharp theme={null}
[Browsable(false)]
public int ScenarioCount { get; }
```

#### Property Value

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

### this\[Identifier]

```csharp theme={null}
public IScenario this[Identifier identifier] { get; }
```

#### Property Value

[IScenario](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.IScenario.md)

### this\[int]

```csharp theme={null}
public IScenario this[int index] { get; }
```

#### Property Value

[IScenario](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.IScenario.md)

### this\[string]

```csharp theme={null}
public IScenario this[string name] { get; }
```

#### Property Value

[IScenario](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.IScenario.md)

## Methods

### Add(IScenario)

```csharp theme={null}
public void Add(IScenario item)
```

#### Parameters

`item` [IScenario](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.IScenario.md)

### CanRegisterID(Identifier)

```csharp theme={null}
public bool CanRegisterID(Identifier identifier)
```

#### Parameters

`identifier` Identifier

#### Returns

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

### CanRegisterName(string)

```csharp theme={null}
public bool CanRegisterName(string name)
```

#### Parameters

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

#### Returns

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

### Contains(IScenario)

```csharp theme={null}
public bool Contains(IScenario item)
```

#### Parameters

`item` [IScenario](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.IScenario.md)

#### Returns

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

### ContainsID(Identifier)

```csharp theme={null}
public bool ContainsID(Identifier identifier)
```

#### Parameters

`identifier` Identifier

#### Returns

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

### ContainsName(IProjectObject)

```csharp theme={null}
public bool ContainsName(IProjectObject item)
```

#### Parameters

`item` [IProjectObject](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.IProjectObject.md)

#### Returns

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

### DisposeManagedResources()

```csharp theme={null}
protected override void DisposeManagedResources()
```

### Open(string)

```csharp theme={null}
public static ProjectDocument Open(string path)
```

#### Parameters

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

#### Returns

[ProjectDocument](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.ProjectDocument.md)

### Remove(IScenario)

```csharp theme={null}
public void Remove(IScenario item)
```

#### Parameters

`item` [IScenario](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.IScenario.md)

### Save()

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

### TryGetValue(Identifier, out IScenario)

```csharp theme={null}
public bool TryGetValue(Identifier identifier, out IScenario scenario)
```

#### Parameters

`identifier` Identifier

`scenario` [IScenario](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.IScenario.md)

#### Returns

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

### TryGetValue(string, out IScenario)

```csharp theme={null}
public bool TryGetValue(string name, out IScenario scenario)
```

#### Parameters

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

`scenario` [IScenario](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.IScenario.md)

#### Returns

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

### UnregisterID(IProjectObject)

```csharp theme={null}
public void UnregisterID(IProjectObject item)
```

#### Parameters

`item` [IProjectObject](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.IProjectObject.md)

### UnregisterName(IProjectObject)

```csharp theme={null}
public void UnregisterName(IProjectObject item)
```

#### Parameters

`item` [IProjectObject](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.IProjectObject.md)
