    

 ## On this page

  

 

 # Class StringAPI

 Last update: 09.03.2026 

<a id="VM_API_Pre_StringAPI"></a>

Namespace: [VM.API.Pre](VM.API.Pre.md)  
Assembly: VM.API.Pre.dll

This class implements APIs for string.

```csharp
public static class StringAPI

```

#### Inheritance

object ← [StringAPI](VM.API.Pre.StringAPI.md)

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

## Methods

### <a id="VM_API_Pre_StringAPI_CreateString_VM_Managed_DAFUL_SubSystemDocument_System_String_System_Boolean_System_String_System_Boolean_"></a> CreateString(SubSystemDocument, string, bool, string, bool)

Create .

```csharp
[NotNull(new string[] { "document" })]
public static Obj CreateString(this SubSystemDocument document, string name = "", bool folderPath = false, string stringVal = "", bool isInterface = false)

```

#### Parameters

`document` [SubSystemDocument](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDFBase/SubSystemDocument.cs)

The document to create the string.

`name` string

The name of string.

`folderPath` bool

The flag of folder path.

`stringVal` string

The value of string.

`isInterface` bool

The flag of interface.

#### Returns

[Obj](VM.API.Pre.Obj.md)

The new  object that is created by this API.

#### Exceptions

ArgumentNullException

Will be thrown if 'document' is null.