GetTagMatchAttribute() public static method

Returns the match attribute of the specified class. This attribute is used to identify a tag in a text.
public static GetTagMatchAttribute ( Type tag ) : MatchTagAttributeBase
tag System.Type
return MatchTagAttributeBase
Exemplo n.º 1
0
 /// <summary>
 /// Checks whether there is a string tag in the text at the specified position, and returns its type.
 /// </summary>
 protected Type IsStringTag(string text, int position)
 {
     foreach (Type myTagType in StringTags)
     {
         MatchTagAttributeBase myMatchTagAttribute = TagBase.GetTagMatchAttribute(myTagType);
         if (myMatchTagAttribute.Match(text, position))
         {
             return(myTagType);
         }
     }
     return(null);
 }