Returns true if the PageElement has the specified Tag(s).

bool HasTags( 
string pattern
TagQueryOptions option 
)

Parameters

pattern

Type: string

A partial string or Regex pattern to match. Tags are case-insensitive.

option

Type: TagQueryOptions

Can be one of Equals, StartsWith, EndsWith, Contains or Regex.