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

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

This base class is to represent the instance container.

```csharp theme={null}
[CanNotOpenWithNewPreprocessor]
public abstract class InstanceContainer : SubEntity, IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, ISubEntity, IEntityBase, IObjectBase, IObject, IEventProvider, IHasKeyObject, IHasName, IEnabled, IHasComment, INamed, INavigatorItem, IContainer, ILinkContainer, IOwned, IHasID, IDocumentOwner, IReferencable, ITransformable, IVisible, IAssemblyOwner, IInterfaceTable, IGroup, IMultiChangable, IInstanceContainer, IEntityRelation
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
ObservableObject ←
LinkableBase ←
ObjectBase ←
Object\<ObjectEventCore> ←
[SubEntity](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.SubEntity.md) ←
[InstanceContainer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.InstanceContainer.md)

#### Implements

IObservableObject,
IDisposableObject,
ILinkable,
ILinkContainerEvent,
IVerifiable,
IHistoryObjectSerializable,
IAttributeContainer,
ISubEntity,
IEntityBase,
IObjectBase,
IObject,
IEventProvider,
IHasKeyObject,
IHasName,
IEnabled,
IHasComment,
INamed,
INavigatorItem,
IContainer,
ILinkContainer,
IOwned,
IHasID,
IDocumentOwner,
IReferencable,
ITransformable,
IVisible,
IAssemblyOwner,
[IInterfaceTable](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.IInterfaceTable.md),
IGroup,
IMultiChangable,
IInstanceContainer,
IEntityRelation

#### Inherited Members

[SubEntity.Initialize(Unit.ConvertFactor)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.SubEntity.md#VM_Managed_SubEntity_Initialize_VM_Unit_ConvertFactor_),
[SubEntity.GetModelNavigatorInformationImpl(XmlDocument, XmlElement, bool)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.SubEntity.md#VM_Managed_SubEntity_GetModelNavigatorInformationImpl_System_Xml_XmlDocument_System_Xml_XmlElement_System_Boolean_),
[SubEntity.FixUp(ObjectBase)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.SubEntity.md#VM_Managed_SubEntity_FixUp_VM_Managed_ObjectBase_),
[SubEntity.WriteTemplateImpl(XmlWriter)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.SubEntity.md#VM_Managed_SubEntity_WriteTemplateImpl_System_Xml_XmlWriter_),
[SubEntity.ReadTemplateImpl(XmlReader)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.SubEntity.md#VM_Managed_SubEntity_ReadTemplateImpl_System_Xml_XmlReader_),
[SubEntity.Name](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.SubEntity.md#VM_Managed_SubEntity_Name),
[SubEntity.FullName](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.SubEntity.md#VM_Managed_SubEntity_FullName),
[SubEntity.NonSymmetricName](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.SubEntity.md#VM_Managed_SubEntity_NonSymmetricName),
[SubEntity.DisplayName](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.SubEntity.md#VM_Managed_SubEntity_DisplayName),
[SubEntity.IsEnabled](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.SubEntity.md#VM_Managed_SubEntity_IsEnabled),
[SubEntity.Comment](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.SubEntity.md#VM_Managed_SubEntity_Comment),
Object\<ObjectEventCore>.GetKey(),
Object\<ObjectEventCore>.Initialize(Unit.ConvertFactor),
Object\<ObjectEventCore>.SetIconColor(Canvas),
Object\<ObjectEventCore>.OnDeserialization(object),
Object\<ObjectEventCore>.CustomGetObjectData(SerializationInfo, StreamingContext),
Object\<ObjectEventCore>.RollbackEvent(),
Object\<ObjectEventCore>.OnDeserializedCore(object),
Object\<ObjectEventCore>.Key,
Object\<ObjectEventCore>.UntypedEventCore,
Object\<ObjectEventCore>.EventCore,
Object\<ObjectEventCore>.Attributes,
ObjectBase.ReplaceEventCore(ObjectEventCore),
ObjectBase.SetModifiedCore(ModifiedResult.ModifiedType),
ObjectBase.AddPostDeserialize(StreamingContext),
ObjectBase.LinkAddedToDocumentCore(IOwned, bool),
ObjectBase.SetModified(ModifiedResult.ModifiedType),
ObjectBase.SetModified(),
ObjectBase.SetModified(ModifiedResult.ModifiedType, IDocument),
ObjectBase.DestroyObject(object, LinkEventArgs),
ObjectBase.DestroyObject(DestroyEventArgs),
ObjectBase.DestroyObject(),
ObjectBase.Initialize(Unit.ConvertFactor),
ObjectBase.FixUp(ObjectBase),
ObjectBase.DoWorkAfterUpdateContents(),
ObjectBase.SetOldNameWithNewEntity(ObjectBase, ObjectBase),
ObjectBase.SetIconColor(Canvas),
ObjectBase.RemoveFromCreatedList(),
ObjectBase.PostAddToDocument(),
ObjectBase.PostRemoveFromDocument(Document),
ObjectBase.GetArgumentList(LinkedList\<ObjectBase>),
ObjectBase.ResetInvalidEntity(),
ObjectBase.OnDeserialization(object),
ObjectBase.IsSerializableEvent(Delegate),
ObjectBase.CustomGetObjectData(SerializationInfo, StreamingContext),
ObjectBase.CheckAndUpdateLink(HashSet\<ObjectBase>),
ObjectBase.Verify(VerifiedResult),
ObjectBase.ConnectProxy(),
ObjectBase.RollbackEvent(),
ObjectBase.LinkRequestUpdating(object, LinkEventArgs),
ObjectBase.LinkRequestUpdate(object, LinkEventArgs),
ObjectBase.LinkRequestDestroying(object, LinkEventArgs),
ObjectBase.LinkRequestDestroy(object, LinkEventArgs),
ObjectBase.LinkAddedToDocument(object, AddToDocEventArgs),
ObjectBase.LinkRemovedFromDocument(object, RemoveFromDocEventArgs),
ObjectBase.DisposeManagedResources(),
ObjectBase.GetDestroyEventExtraData(),
ObjectBase.OnLinkReserved(ILink, object, EventArgs),
ObjectBase.CreateEntityWhenUpdateContents(Action),
ObjectBase.GetObjectByKey(UIntPtr),
ObjectBase.FindObjectOnXmlDeserialize(string),
ObjectBase.UpdateContents(XmlReader, ObjectBase, string),
ObjectBase.UpdateContents(XmlReader, ObjectBase),
ObjectBase.UpdateContents(string, string),
ObjectBase.UpdateContents(string),
ObjectBase.SetFlagWhenXMLFile(string, bool),
ObjectBase.IsEqualArray\<T>(T\[], T\[]),
ObjectBase.IsEqualList(List\<double>, List\<double>),
ObjectBase.SetContainer(IOwned, bool),
ObjectBase.GetTargetListForUpdate(),
ObjectBase.SkipUpdateObjectImpl(),
ObjectBase.raise\_OnUpdating(object, LinkEventArgs),
ObjectBase.raise\_OnUpdate(object, LinkEventArgs),
ObjectBase.raise\_OnDestroying(object, LinkEventArgs),
ObjectBase.raise\_OnDestroy(object, LinkEventArgs),
ObjectBase.raise\_Destroying(object, Identifier),
ObjectBase.raise\_OnAdded(object, AddToDocEventArgs),
ObjectBase.raise\_OnRemoved(object, RemoveFromDocEventArgs),
ObjectBase.raise\_OnContentsUpdated(object, EventArgs),
ObjectBase.Dispose(bool),
ObjectBase.SkipModified,
ObjectBase.ClearChildInfoBeforeDeserialize,
ObjectBase.KeyImpl,
ObjectBase.ID,
ObjectBase.TopologyEntityTypeName,
ObjectBase.ObjectStateForCircularError,
ObjectBase.ObjectState,
ObjectBase.IsChildExternable,
ObjectBase.IsExternable,
ObjectBase.Container,
ObjectBase.Owner,
ObjectBase.Document,
ObjectBase.UntypedEventCore,
ObjectBase.KernelKey,
ObjectBase.Key,
ObjectBase.OnContentsUpdated,
ObjectBase.OnRemoved,
ObjectBase.OnAdded,
ObjectBase.Destroying,
ObjectBase.OnDestroy,
ObjectBase.OnDestroying,
ObjectBase.OnUpdate,
ObjectBase.OnUpdating,
LinkableBase.OnDeserialization(object),
ObservableObject.Dispose(),
ObservableObject.RaisePropertyChanged(string),
ObservableObject.RaisePropertyChanged(string, object, object),
ObservableObject.Dispose(bool),
ObservableObject.DisposeManagedResources(),
ObservableObject.DisposeUnmanagedResources(),
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

### InstanceContainer()

Initializes a new instance of the [InstanceContainer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.InstanceContainer.md) class.

```csharp theme={null}
public InstanceContainer()
```

### InstanceContainer(string, Instance)

Initializes a new instance of the [InstanceContainer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.InstanceContainer.md) class.

```csharp theme={null}
public InstanceContainer(string strName, Instance instance)
```

#### Parameters

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

Name of the instance container.

`instance` Instance

The instance.

### InstanceContainer(string, string, TransformBase)

Initializes a new instance of the [InstanceContainer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.InstanceContainer.md) class.

```csharp theme={null}
public InstanceContainer(string strName, string strDocumentFilePath, TransformBase transf)
```

#### Parameters

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

Name of the instance container.

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

The document file path.

`transf` TransformBase

The transformation matrix.

## Properties

### Instance

Gets or sets the instance.

```csharp theme={null}
public Instance Instance { get; set; }
```

#### Property Value

Instance

### InterfaceTableList

Gets the interface table list.

```csharp theme={null}
protected IList<InstanceContainer.InterfaceTable> InterfaceTableList { get; }
```

#### Property Value

[IList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1)\<[InstanceContainer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.InstanceContainer.md).[InterfaceTable](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.InstanceContainer.InterfaceTable.md)>

### InterfaceTables

Gets or sets the interface tables.

```csharp theme={null}
public InstanceContainer.InterfaceTable[] InterfaceTables { get; set; }
```

#### Property Value

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

### IsVisible

Gets or sets the visible state.

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

#### Property Value

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

### Layer

Gets or sets the layer.

```csharp theme={null}
public Layer Layer { get; set; }
```

#### Property Value

Layer

## Methods

### BindInterface()

Binds the interface.

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

### BindInterface(ObjectBase, ObjectBase)

Binds the interface.

```csharp theme={null}
protected virtual bool BindInterface(ObjectBase obFrom, ObjectBase obTo)
```

#### Parameters

`obFrom` ObjectBase

The \[from object].

`obTo` ObjectBase

The \[to object].

#### Returns

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

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

### BindInterface(InterfaceTable)

Binds the interface.

```csharp theme={null}
protected void BindInterface(InstanceContainer.InterfaceTable table)
```

#### Parameters

`table` [InstanceContainer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.InstanceContainer.md).[InterfaceTable](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.InstanceContainer.InterfaceTable.md)

The interface table.

### Find(string)

Finds an object that matches a specified name

```csharp theme={null}
public IObjectBase Find(string strName)
```

#### Parameters

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

Name to search for.

#### Returns

IObjectBase

An object that matches a specified name.

### FindLocal(string)

Finds an object that matches a specified name in local.

```csharp theme={null}
public virtual IObjectBase FindLocal(string strName)
```

#### Parameters

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

Name to search for.

#### Returns

IObjectBase

An object that matches a specified name.

### GetChildListImpl()

Gets the child list.

```csharp theme={null}
protected virtual IEnumerable<ObjectBase> GetChildListImpl()
```

#### Returns

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

The child list.

### GetLayerImpl()

Gets the layer \[implementation].

```csharp theme={null}
protected virtual Layer GetLayerImpl()
```

#### Returns

Layer

The layer

### GetNewEntityName(string)

Gets the new name of the entity \[Not Implemented].

```csharp theme={null}
public virtual string GetNewEntityName(string strPrefix)
```

#### Parameters

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

The prefix.

#### Returns

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

The new name

### GetNewEntityName(string, bool, int)

Generate an unique DAFUL object name from the container using the prefix name.

```csharp theme={null}
public string GetNewEntityName(string strPrefix, bool bUseUnderLine, int nNumFigure)
```

#### Parameters

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

The DAFUL object prefix name.

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

Whether use underline.

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

The Number of Figure.

#### Returns

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

The DAFUL object name.

### GetNewEntityName(string, bool, int, int)

Generate an unique DAFUL object name from the container using the prefix name.

```csharp theme={null}
public string GetNewEntityName(string strPrefix, bool bUseUnderLine, int nNumFigure, int nStartIndex)
```

#### Parameters

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

The DAFUL object prefix name.

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

Whether use underline.

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

The Number of Figure.

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

The start index.

#### Returns

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

The DAFUL object name.

### GetTargetListForUpdate()

Gets the update objects.

```csharp theme={null}
public override List<IEventProvider> GetTargetListForUpdate()
```

#### Returns

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

### GetUnnamedObjectName(object)

Gets the name of the unnamed object.

```csharp theme={null}
public virtual string GetUnnamedObjectName(object obUnnamed)
```

#### Parameters

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

The unnamed object.

#### Returns

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

The unnamed object name.

### InitInterfaceTable()

Initialize the interface table.

```csharp theme={null}
public virtual void InitInterfaceTable()
```

### IsDestroyContainer()

Determines whether is \[destroy container].

```csharp theme={null}
public virtual bool IsDestroyContainer()
```

#### Returns

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

`true` if is \[destroy container]; otherwise, `false`.

### LinkRequestDestroy(object, LinkEventArgs)

Request for destroy the linked object.

```csharp theme={null}
protected override void LinkRequestDestroy(object objNotifier, LinkEventArgs arg)
```

#### Parameters

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

The linked object.

`arg` LinkEventArgs

The [LinkEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.LinkEventArgs.md) instance containing the event data.

### LinkRequestUpdate(object, LinkEventArgs)

Request for update the linked object.

```csharp theme={null}
protected override void LinkRequestUpdate(object objNotifier, LinkEventArgs arg)
```

#### Parameters

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

The linked object.

`arg` LinkEventArgs

The [LinkEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.LinkEventArgs.md) instance containing the event data.

### MakeReferenceImpl(LinkedList\<Reference>)

Makes the reference \[implementation].

```csharp theme={null}
protected virtual void MakeReferenceImpl(LinkedList<Reference> lstRef)
```

#### Parameters

`lstRef` [LinkedList](https://learn.microsoft.com/dotnet/api/system.collections.generic.linkedlist-1)\<Reference>

The container.

### OnDeserialization(object)

Called when \[deserialization].

```csharp theme={null}
protected override void OnDeserialization(object sender)
```

#### Parameters

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

The sender.

### PostAddToDocument()

Call when post \[add to document].

```csharp theme={null}
public override void PostAddToDocument()
```

### PostOpenDocumentAfterHookEvent()

Call when post \[open document].

```csharp theme={null}
public virtual void PostOpenDocumentAfterHookEvent()
```

### ProcessDuplicateReferenceImpl(Reference)

Process for duplicated reference

```csharp theme={null}
protected virtual void ProcessDuplicateReferenceImpl(Reference refer)
```

#### Parameters

`refer` Reference

The reference.

### Redraw()

Redraw.

```csharp theme={null}
public virtual void Redraw()
```

### SetLayerImpl(Layer)

Sets the layer \[implementation].

```csharp theme={null}
protected virtual void SetLayerImpl(Layer layer)
```

#### Parameters

`layer` Layer

The layer.

### TransformImpl(TMatrix)

Transforms \[implementation].

```csharp theme={null}
protected virtual void TransformImpl(TMatrix matT)
```

#### Parameters

`matT` TMatrix

The mat T.
