INGEAR.NET.GELink

 

TagGroup.Clear Method 

Removes all Tag objects from the TagGroup collection

[Visual Basic]
NotOverridable Public Sub Clear() _
    Implements IGroup.Clear
[C#]
public void Clear();

Implements

IGroup.Clear

Remarks

  Remove all instances of Tag classes in the TagGroup

Example

VB
Dim MyGroup As New GELink.TagGroup
Dim MyTag_1 As New GELink.Tag("%R1")
Dim MyTag_2 As New GELink.Tag("%M1")
MyGroup.AddTag(MyTag_1)
MyGroup.AddTag(MyTag_2)


' * number of tags in the group Console.WriteLine(MyGroup.Count.ToString())
' * clear MyGroup.Clear() ' * number of tags in the group Console.WriteLine(MyGroup.Count.ToString())
C# GELink.TagGroup MyGroup = new GELink.TagGroup(); GELink.Tag MyTag_1 = new GELink.Tag("%R1"); GELink.Tag MyTag_2 = new GELink.Tag("%M1"); MyGroup.AddTag(MyTag_1); MyGroup.AddTag(MyTag_2);
// number of tags in the group Console.WriteLine(MyGroup.Count.ToString());
// clear group MyGroup.Clear();
// number of tags in group Console.WriteLine(MyGroup.Count.ToString());

See Also

TagGroup Class | GELink Namespace | AddTag | RemoveTag | Count