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

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

This class is to represent \[interface add event].

```csharp theme={null}
public class InterfaceAddEvent : InterfaceEvent
```

#### Inheritance

object ←
[HistoryEvent](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEvent.cs) ←
DocumentMemberModifiedEvent ←
DocumentSimpleValueModifiedEvent\<List\<InterfaceManager.InterfaceInfoForUndo>> ←
[InterfaceEvent](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.InterfaceEvent.md) ←
[InterfaceAddEvent](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.InterfaceAddEvent.md)

#### Inherited Members

[InterfaceEvent.AfterUndo(HistoryEventArgs)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.InterfaceEvent.md#VM_Managed_InterfaceEvent_AfterUndo_VM_Managed_History_HistoryEventArgs_),
[InterfaceEvent.AfterRedo(HistoryEventArgs)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.InterfaceEvent.md#VM_Managed_InterfaceEvent_AfterRedo_VM_Managed_History_HistoryEventArgs_),
[InterfaceEvent.Add()](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.InterfaceEvent.md#VM_Managed_InterfaceEvent_Add),
[InterfaceEvent.Remove()](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.InterfaceEvent.md#VM_Managed_InterfaceEvent_Remove),
DocumentSimpleValueModifiedEvent\<List\<InterfaceManager.InterfaceInfoForUndo>>.PreExecute,
DocumentSimpleValueModifiedEvent\<List\<InterfaceManager.InterfaceInfoForUndo>>.PostExecute,
DocumentSimpleValueModifiedEvent\<List\<InterfaceManager.InterfaceInfoForUndo>>.m\_value,
DocumentSimpleValueModifiedEvent\<List\<InterfaceManager.InterfaceInfoForUndo>>.m\_strPropertyName,
DocumentSimpleValueModifiedEvent\<List\<InterfaceManager.InterfaceInfoForUndo>>.m\_arAddOn,
DocumentSimpleValueModifiedEvent\<List\<InterfaceManager.InterfaceInfoForUndo>>.m\_objParam,
DocumentSimpleValueModifiedEvent\<List\<InterfaceManager.InterfaceInfoForUndo>>.Undo(HistoryEventArgs),
DocumentSimpleValueModifiedEvent\<List\<InterfaceManager.InterfaceInfoForUndo>>.Redo(HistoryEventArgs),
DocumentSimpleValueModifiedEvent\<List\<InterfaceManager.InterfaceInfoForUndo>>.BeforeUndo(HistoryEventArgs),
DocumentSimpleValueModifiedEvent\<List\<InterfaceManager.InterfaceInfoForUndo>>.BeforeRedo(HistoryEventArgs),
DocumentSimpleValueModifiedEvent\<List\<InterfaceManager.InterfaceInfoForUndo>>.AfterUndo(HistoryEventArgs),
DocumentSimpleValueModifiedEvent\<List\<InterfaceManager.InterfaceInfoForUndo>>.AfterRedo(HistoryEventArgs),
DocumentSimpleValueModifiedEvent\<List\<InterfaceManager.InterfaceInfoForUndo>>.Clear(bool),
DocumentSimpleValueModifiedEvent\<List\<InterfaceManager.InterfaceInfoForUndo>>.DocumentSimpleValueModified(Document, object, string),
DocumentSimpleValueModifiedEvent\<List\<InterfaceManager.InterfaceInfoForUndo>>.DocumentSimpleValueModified(Document, object, string, object),
DocumentSimpleValueModifiedEvent\<List\<InterfaceManager.InterfaceInfoForUndo>>.DocumentSimpleValueModified(Document, object, string, object, IUpdateDocAddOn\[]),
DocumentSimpleValueModifiedEvent\<List\<InterfaceManager.InterfaceInfoForUndo>>.DocumentSimpleValueModified(Document, object, string, object, object, DocumentSimpleValueModifiedEvent\<List\<InterfaceManager.InterfaceInfoForUndo>>.PreExecuteCallback),
DocumentSimpleValueModifiedEvent\<List\<InterfaceManager.InterfaceInfoForUndo>>.DocumentSimpleValueModified(Document, object, string, object, object, DocumentSimpleValueModifiedEvent\<List\<InterfaceManager.InterfaceInfoForUndo>>.PostExecuteCallback),
DocumentSimpleValueModifiedEvent\<List\<InterfaceManager.InterfaceInfoForUndo>>.DocumentSimpleValueModified(Document, object, string, object, IUpdateDocAddOn\[], object, DocumentSimpleValueModifiedEvent\<List\<InterfaceManager.InterfaceInfoForUndo>>.PreExecuteCallback),
DocumentSimpleValueModifiedEvent\<List\<InterfaceManager.InterfaceInfoForUndo>>.DocumentSimpleValueModified(Document, object, string, object, IUpdateDocAddOn\[], object, DocumentSimpleValueModifiedEvent\<List\<InterfaceManager.InterfaceInfoForUndo>>.PostExecuteCallback),
DocumentMemberModifiedEvent.m\_doc,
DocumentMemberModifiedEvent.m\_obj,
DocumentMemberModifiedEvent.Clear(bool),
[HistoryEvent.ClearEvent(bool)](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEvent.cs),
[HistoryEvent.Undo(HistoryEventArgs)](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEvent.cs),
[HistoryEvent.Redo(HistoryEventArgs)](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEvent.cs),
[HistoryEvent.Clear(bool)](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEvent.cs),
[HistoryEvent.BeforeUndo(HistoryEventArgs)](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEvent.cs),
[HistoryEvent.AfterUndo(HistoryEventArgs)](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEvent.cs),
[HistoryEvent.BeforeRedo(HistoryEventArgs)](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEvent.cs),
[HistoryEvent.AfterRedo(HistoryEventArgs)](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEvent.cs),
[HistoryEvent.BeforeAdded(AddToHistoryManagerEventArgs)](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEvent.cs),
[HistoryEvent.AfterAdded(HistoryEventArgs)](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEvent.cs),
[HistoryEvent.IsValid](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEvent.cs)

#### Extension Methods

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

## Constructors

### InterfaceAddEvent(Document, object, string, object, object, PostExecuteCallback, string)

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

```csharp theme={null}
public InterfaceAddEvent(Document doc, object obj, string strPropertyName, object objTarget, object objParam, DocumentSimpleValueModifiedEvent<List<InterfaceManager.InterfaceInfoForUndo>>.PostExecuteCallback delPostExecute, string strXML)
```

#### Parameters

`doc` Document

`obj` object

`strPropertyName` string

`objTarget` object

`objParam` object

`delPostExecute` DocumentSimpleValueModifiedEvent\<List\<[InterfaceManager](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.InterfaceManager.md).[InterfaceInfoForUndo](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.InterfaceManager.InterfaceInfoForUndo.md)>>.PostExecuteCallback

`strXML` string

## Methods

### AfterRedo(HistoryEventArgs)

After redo.
\<param name="args">The argument\</param>

```csharp theme={null}
protected override void AfterRedo(HistoryEventArgs args)
```

#### Parameters

`args` [HistoryEventArgs](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEventArgs.cs)

### AfterUndo(HistoryEventArgs)

After undo.
\<param name="args">The argument\</param>

```csharp theme={null}
protected override void AfterUndo(HistoryEventArgs args)
```

#### Parameters

`args` [HistoryEventArgs](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMHist/HistoryEventArgs.cs)
