    

 ## On this page

  

 

 # Class AppHandle

 Last update: 16.07.2025 

Namespace: [VM.Managed.Dialog](VM.Managed.Dialog.md)  
Assembly: VMAppCore.dll

This class is to represent the application handler.

```csharp
public class AppHandle : IAppHandle

```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [AppHandle](VM.Managed.Dialog.AppHandle.md)

#### Implements

IAppHandle

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

### AppHandle()

Initializes a new instance of the  class.

```csharp
public AppHandle()

```

## Methods

### Activate(List&lt;UIntPtr&gt;, bool)

```csharp
public virtual void Activate(List<UIntPtr> lstObj, bool isActive)

```

#### Parameters

`lstObj` [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)&lt;[UIntPtr](https://learn.microsoft.com/dotnet/api/system.uintptr)&gt;

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

### Activate(UIntPtr, bool)

Activate.Usually, highlight.

```csharp
public virtual void Activate(UIntPtr obj, bool isActive)

```

#### Parameters

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

The tag of activate

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

The Activate flag

### ActivateFromExtern(UIntPtr, bool)

Activate.Usually, highlight.

```csharp
public virtual void ActivateFromExtern(UIntPtr obj, bool isActive)

```

#### Parameters

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

The tag of activate.

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

The Activate flag.

### ActivateFromExternWithoutReset(UIntPtr, bool)

Activate.Usually, highlight.

```csharp
public virtual void ActivateFromExternWithoutReset(UIntPtr obj, bool isActive)

```

#### Parameters

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

The tag of activate.

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

The Activate flag.

### ActivateWithoutReset(List&lt;UIntPtr&gt;, bool)

```csharp
public virtual void ActivateWithoutReset(List<UIntPtr> lstObj, bool isActive)

```

#### Parameters

`lstObj` [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)&lt;[UIntPtr](https://learn.microsoft.com/dotnet/api/system.uintptr)&gt;

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

### ActivateWithoutReset(UIntPtr, bool)

Activate.Usually, highlight.

```csharp
public virtual void ActivateWithoutReset(UIntPtr obj, bool isActive)

```

#### Parameters

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

The tag of activate

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

The Activate flag

### CalcCoordSys(string, XmlNode, XmlNode)

Coordinate system is calculation to selected object.

```csharp
public virtual bool CalcCoordSys(string strPickResult, XmlNode nodeBaseCoordSys, XmlNode nodeActionCoordSys)

```

#### Parameters

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

The result of picking.

`nodeBaseCoordSys` [XmlNode](https://learn.microsoft.com/dotnet/api/system.xml.xmlnode)

The base coordinate system.

`nodeActionCoordSys` [XmlNode](https://learn.microsoft.com/dotnet/api/system.xml.xmlnode)

The action coordinate system.

#### Returns

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

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

### DeleteObject(UIntPtr, bool)

Object is delete.

```csharp
public virtual bool DeleteObject(UIntPtr obj, bool isFirst)

```

#### Parameters

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

The deleted object.

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

`true` if deleted object is first object; otherwise, `false`.

#### Returns

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

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

### DistanceBetween2Points(UIntPtr, UIntPtr)

Gets the distance about two objects. Usually, distance of start point.

```csharp
public virtual double DistanceBetween2Points(UIntPtr tagFrom, UIntPtr tagTo)

```

#### Parameters

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

Based on tag of object.

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

Another tag of object.

#### Returns

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

The distance about two objects.

### FindInActiveModel(string)

Gets tag in activate model.

```csharp
public virtual UIntPtr FindInActiveModel(string strObjName)

```

#### Parameters

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

Find name of object.

#### Returns

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

`tag` if success; otherwise, `zero`.

### GetDefaultName(string)

Gets default name

```csharp
public virtual string GetDefaultName(string strHead)

```

#### Parameters

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

prefix of name

#### Returns

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

The name

### IsValidName(string, UIntPtr, UIntPtr)

Duplicated Name Check for object int specific container

```csharp
public virtual bool IsValidName(string strName, UIntPtr tagContainer, UIntPtr tagObject)

```

#### Parameters

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

Name for Checking

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

Tag of the container which contains tagObject if IntPtr.Zero, Current working model will be used.

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

Tag of the object which wnats to set names. if IntPtr.Zero, strName must unique.

#### Returns

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

if Duplicated then return false

### RegisterStrDialogResult(int, XmlDocument)

Data of dialog

```csharp
public virtual void RegisterStrDialogResult(int nIDDialog, XmlDocument domResult)

```

#### Parameters

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

The ID of dialog.

`domResult` [XmlDocument](https://learn.microsoft.com/dotnet/api/system.xml.xmldocument)

The data of dialog.

### SetMultiDeleteObject(bool)

Sets the multi delete object.

```csharp
public virtual void SetMultiDeleteObject(bool bMulti)

```

#### Parameters

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

`true` if multi delete object; otherwise, `false`.

### StartOperation(string, UIntPtr, string)

Execute operation.

```csharp
public virtual void StartOperation(string strOpName, UIntPtr doc, string strOpInfo)

```

#### Parameters

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

The name of operation.

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

Document point.

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

Additional information.

### StartOperation(string, string, bool)

Execute operation.

```csharp
public virtual void StartOperation(string strOpName, string strOpInfo, bool bHistoryMerge)

```

#### Parameters

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

The name of operation.

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

Additional information.

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

History merge flag.

### StartOperation(string, string)

Execute operation.

```csharp
public virtual void StartOperation(string strOpName, string strOpInfo)

```

#### Parameters

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

The name of operation.

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

Additional information.

### StartOperation(string)

Execute operation.

```csharp
public virtual void StartOperation(string strOpName)

```

#### Parameters

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

The name of operation.

### UpdateDisplay()

Update display.

```csharp
public virtual void UpdateDisplay()

```