INGEAR.NET.GELink

 

TagGroup.RemoveTag Method 

Removes specific instance of Tag class from TagGroup

[Visual Basic]
Public Function RemoveTag( _
   ParamArray Tag As Tag() _
) As Integer
[C#]
public int RemoveTag(
   params Tag[] Tag
);

Parameters

Tag

 

Return Value

ResultCode

Remarks

Removes instance(s) of Tags, then re-optimizes TagGroup.  

Exceptions

Exception Type Condition
ArgumentNullException Thrown if Tag is a null reference (Nothing in Visual Basic)
ArgumentException Thrown if Tag is not Type GELink.Tag

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)
.. elsewhere in code
MyGroup.RemoveTag(MyTag_2)


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); ... elsewhere in code MyGroup.RemoveTag(MyTag_1);

See Also

TagGroup Class | GELink Namespace | AddTag | Clear | Count