27.3.2.5.1 AddTag

 

Append a tag into the open tag group.

 

Syntax

Bwdllobj

Public Sub AddTag(tag As String)

C#

Void AddTag(String tag);

 

Parameters

tag

[in] The specific tag name to get the tag ID.

 

Return Value

None.

 

Remarks

This function only take effect with open tag group.

 

C# Sample Code

private void btnAdd_Click(object sender, EventArgs e)

{

    if (tbAddTag.Text.Length == 0)

    {

        MessageLog("Can't add empty tag name.");

        return;

    }

    foreach (object a in lbTagName.Items)

    {

        if (a.ToString() == tbAddTag.Text)

        {

            MessageLog("Tag name already exists.");

            return;

        }

    }

    lbTagName.Items.Add(tbAddTag.Text);

    ViewDllWrap.AddTag(tbAddTag.Text);

}