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

# Interface IDocument

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

This interface represents the document object of the Motion Preprocessor

```csharp theme={null}
public interface IDocument : IObject, IEventProvider, IContainer, ILinkContainer, IOwned, IHasID
```

#### Implements

[IObject](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.IObject.md),
[IEventProvider](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.IEventProvider.md),
[IContainer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.IContainer.md),
[ILinkContainer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.ILinkContainer.md),
[IOwned](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.IOwned.md),
IHasID

#### 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_),
[IDocumentExtensions.IsExistNameInDocument(IDocument, string)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.IDocumentExtensions.md#VM_Models_Pre_IDocumentExtensions_IsExistNameInDocument_VM_Models_Pre_IDocument_System_String_)

## Properties

### DoingClose

```csharp theme={null}
bool DoingClose { get; }
```

#### Property Value

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

### DoingOpen

```csharp theme={null}
bool DoingOpen { get; }
```

#### Property Value

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

### FilePath

```csharp theme={null}
string FilePath { get; }
```

#### Property Value

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

### InitialConvertFactor

```csharp theme={null}
Unit.ConvertFactor InitialConvertFactor { get; }
```

#### Property Value

Unit.ConvertFactor

### Modified

```csharp theme={null}
bool Modified { get; set; }
```

#### Property Value

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

### Name

```csharp theme={null}
string Name { get; set; }
```

#### Property Value

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

## Methods

### DisplayModeShape(int, double)

```csharp theme={null}
void DisplayModeShape(int modeSequence, double scale)
```

#### Parameters

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

`scale` [double](https://learn.microsoft.com/dotnet/api/system.double)

### FastToConvertUnitLength(bool)

```csharp theme={null}
double FastToConvertUnitLength(bool reverse)
```

#### Parameters

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

#### Returns

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

### FindObjectFromID(Identifier)

```csharp theme={null}
IObject FindObjectFromID(Identifier identifier)
```

#### Parameters

`identifier` Identifier

#### Returns

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

### FindObjectFromKey(UIntPtr)

Find object from key.

```csharp theme={null}
IObject FindObjectFromKey(UIntPtr key)
```

#### Parameters

`key` [UIntPtr](https://learn.microsoft.com/dotnet/api/system.uintptr)

The key.

#### Returns

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

Find object

### GetChildren()

```csharp theme={null}
IEnumerable<IObject> GetChildren()
```

#### Returns

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

### GetCopyOfKernelUnit()

```csharp theme={null}
Unit GetCopyOfKernelUnit()
```

#### Returns

Unit

### GetCopyOfUnit()

```csharp theme={null}
Unit GetCopyOfUnit()
```

#### Returns

Unit

### GetNextIdentifier()

```csharp theme={null}
Identifier GetNextIdentifier()
```

#### Returns

Identifier

### Save(string)

```csharp theme={null}
void Save(string path)
```

#### Parameters

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

### ChildAdded

Raised when a child object is added

```csharp theme={null}
event EventHandler<Identifier> ChildAdded
```

#### Event Type

[EventHandler](https://learn.microsoft.com/dotnet/api/system.eventhandler-1)\<Identifier>

### ChildRemoved

Raised when a child object is removed

```csharp theme={null}
event EventHandler<Identifier> ChildRemoved
```

#### Event Type

[EventHandler](https://learn.microsoft.com/dotnet/api/system.eventhandler-1)\<Identifier>

### ChildReplaced

Raised when child is replaced by another object

```csharp theme={null}
event EventHandler<Identifier> ChildReplaced
```

#### Event Type

[EventHandler](https://learn.microsoft.com/dotnet/api/system.eventhandler-1)\<Identifier>

### ChildReplacing

Raised when child is about to be replaced with another object

```csharp theme={null}
event EventHandler<Identifier> ChildReplacing
```

#### Event Type

[EventHandler](https://learn.microsoft.com/dotnet/api/system.eventhandler-1)\<Identifier>

### Destroying

Raised when document is about to close

```csharp theme={null}
event EventHandler Destroying
```

#### Event Type

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

### SelectionChanged

```csharp theme={null}
event EventHandler<IEnumerable<Identifier>> SelectionChanged
```

#### Event Type

[EventHandler](https://learn.microsoft.com/dotnet/api/system.eventhandler-1)\<[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<Identifier>>
