    

 ## On this page

  

 

 # Class AddRemoveBodyToPartEvent

 Last update: 16.07.2025 

Namespace: [VM.Managed.DAFUL.History](VM.Managed.DAFUL.History.md)  
Assembly: VMDFBase.dll

Add or remove body to part history event

```csharp
public class AddRemoveBodyToPartEvent : HistoryEvent

```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← HistoryEvent ← [AddRemoveBodyToPartEvent](VM.Managed.DAFUL.History.AddRemoveBodyToPartEvent.md)

#### Inherited Members

HistoryEvent.ClearEvent(bool), HistoryEvent.Undo(HistoryEventArgs), HistoryEvent.Redo(HistoryEventArgs), HistoryEvent.Clear(bool), HistoryEvent.BeforeUndo(HistoryEventArgs), HistoryEvent.AfterUndo(HistoryEventArgs), HistoryEvent.BeforeRedo(HistoryEventArgs), HistoryEvent.AfterRedo(HistoryEventArgs), HistoryEvent.BeforeAdded(AddToHistoryManagerEventArgs), HistoryEvent.AfterAdded(HistoryEventArgs), HistoryEvent.IsValid

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkedObjects&lt;T&gt;(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### AddRemoveBodyToPartEvent(Document, UIntPtr)

Construct new AddRemoveBodyToPartEvent

```csharp
public AddRemoveBodyToPartEvent(Document doc, UIntPtr key)

```

#### Parameters

`doc` Document

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

## Methods

### AfterRedo(HistoryEventArgs)

Called after redo this event

```csharp
protected override void AfterRedo(HistoryEventArgs args)

```

#### Parameters

`args` HistoryEventArgs

The event argument

### AfterUndo(HistoryEventArgs)

Called after undo this event

```csharp
protected override void AfterUndo(HistoryEventArgs args)

```

#### Parameters

`args` HistoryEventArgs

The event argument

### Clear(bool)

Clear event

```csharp
protected override void Clear(bool bReserveReferenceCount)

```

#### Parameters

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

true to reserve reference count, otherwise false.

### Redo(HistoryEventArgs)

Redo event

```csharp
protected override void Redo(HistoryEventArgs args)

```

#### Parameters

`args` HistoryEventArgs

The event argument

### Undo(HistoryEventArgs)

Undo event

```csharp
protected override void Undo(HistoryEventArgs args)

```

#### Parameters

`args` HistoryEventArgs

The event argument