/// <summary> /// Indicates whether this instance and another are equal. /// </summary> public bool Equals(NamespacePrefix other) { return Text == other.Text; }
/// <summary> /// Generates an <a href="http://www.w3.org/TR/css3-selectors/#attribute-selectors">attribute selector</a> /// that represents an element with the given attribute <paramref name="name"/> /// and whose value is a whitespace-separated list of words, one of /// which is exactly <paramref name="value"/>. /// </summary> public virtual void AttributeIncludes(NamespacePrefix prefix, string name, string value) { Add(Ops.AttributeIncludes(prefix, name, value)); }
/// <summary> /// Generates an <a href="http://www.w3.org/TR/css3-selectors/#attribute-selectors">attribute selector</a> /// that represents an element with the attribute <paramref name="name"/> /// whose value contains at least one instance of the substring <paramref name="value"/>. /// </summary> public void AttributeSubstring(NamespacePrefix prefix, string name, string value) { Add(Ops.AttributeSubstring(prefix, name, value)); }
/// <summary> /// Generates human-readable text of this attribute selector. /// </summary> public void AttributeDashMatch(NamespacePrefix prefix, string name, string value) { Add(string.Format(" which have attribute {0} with a hyphen separated value matching '{1}'", name, value)); }
/// <summary> /// Generates a <a href="http://www.w3.org/TR/css3-selectors/#universal-selector">universal selector</a>, /// any single element in the document tree in any namespace /// (including those without a namespace) if no default namespace /// has been specified for selectors. /// </summary> public virtual void Universal(NamespacePrefix prefix) { Add(Ops.Universal(prefix)); }
/// <summary> /// Generates human-readable text of this attribute selector. /// </summary> public void AttributeIncludes(NamespacePrefix prefix, string name, string value) { Add(string.Format(" which have attribute {0} that includes the word '{1}'", name, value)); }
/// <summary> /// Delegates to <see cref="Primary"/> then <see cref="Secondary"/> generator. /// </summary> public void AttributeDashMatch(NamespacePrefix prefix, string name, string value) { Primary.AttributeDashMatch(prefix, name, value); Secondary.AttributeDashMatch(prefix, name, value); }
public virtual void AttributeRegexMatch(NamespacePrefix prefix, string name, string value) { Add(Ops.AttributeRegexMatch(prefix, name, value), "AttributeRegexMatch", prefix, name, value); }
public void AttributeSuffixMatch(NamespacePrefix prefix, string name, string value) { Add(Ops.AttributeSuffixMatch(prefix, name, value), "AttributeSuffixMatch", prefix, name, value); }
/// <summary> /// Generates an <a href="http://www.w3.org/TR/css3-selectors/#attribute-selectors">attribute selector</a> /// that represents an element with the attribute <paramref name="name"/> /// whose value begins with the prefix <paramref name="value"/>. /// </summary> public void AttributePrefixMatch(NamespacePrefix prefix, string name, string value) => Add(Ops.AttributePrefixMatch(prefix, name, value));
public virtual void AttributeExact(NamespacePrefix prefix, string name, string value) { Add(Ops.AttributeExact(prefix, name, value), "AttributeExact", prefix, name, value); }
/// <summary> /// Generates human-readable text of this type selector. /// </summary> public void Type(NamespacePrefix prefix, string type) { Add(string.Format(" <{0}> elements", type)); }
/// <summary> /// Generates human-readable text of this attribute selector. /// </summary> public void AttributeSubstring(NamespacePrefix prefix, string name, string value) { Add(string.Format(" which have attribute {0} whose value contains '{1}'", name, value)); }
/// <summary> /// Generates human-readable text of this attribute selector. /// </summary> public void AttributeSuffixMatch(NamespacePrefix prefix, string name, string value) { Add(string.Format(" which have attribute {0} whose value ends with '{1}'", name, value)); }
/// <summary> /// Generates human-readable text of this universal selector. /// </summary> public void Universal(NamespacePrefix prefix) { Add(" elements"); }
/// <summary> /// Generates human-readable text of this attribute selector. /// </summary> public void AttributeExists(NamespacePrefix prefix, string name) => Add($" which have attribute {name} defined");
/// <summary> /// Generates human-readable text of this attribute selector. /// </summary> public void AttributeExact(NamespacePrefix prefix, string name, string value) { Add(string.Format(" which have attribute {0} with a value of '{1}'", name, value)); }
/// <summary> /// Generates human-readable text of this attribute selector. /// </summary> public void AttributeExact(NamespacePrefix prefix, string name, string value) => Add($" which have attribute {name} with a value of '{value}'");
/// <summary> /// Generates human-readable text of this attribute selector. /// </summary> public void AttributeIncludes(NamespacePrefix prefix, string name, string value) => Add($" which have attribute {name} that includes the word '{value}'");
/// <summary> /// Delegates to <see cref="Primary"/> then <see cref="Secondary"/> generator. /// </summary> public void Type(NamespacePrefix prefix, string type) { Primary.Type(prefix, type); Secondary.Type(prefix, type); }
/// <summary> /// Generates human-readable text of this attribute selector. /// </summary> public void AttributeDashMatch(NamespacePrefix prefix, string name, string value) => Add($" which have attribute {name} with a hyphen separated value matching '{value}'");
/// <summary> /// Generates a <a href="http://www.w3.org/TR/css3-selectors/#type-selectors">type selector</a>, /// which represents an instance of the element type in the document tree. /// </summary> public virtual void Type(NamespacePrefix prefix, string type) { Add(Ops.Type(prefix, type)); }
/// <summary> /// Generates human-readable text of this attribute selector. /// </summary> public void AttributeSuffixMatch(NamespacePrefix prefix, string name, string value) => Add($" which have attribute {name} whose value ends with '{value}'");
/// <summary> /// Generates an <a href="http://www.w3.org/TR/css3-selectors/#attribute-selectors">attribute selector</a> /// that represents an element with the given attribute <paramref name="name"/> /// whatever the values of the attribute. /// </summary> public virtual void AttributeExists(NamespacePrefix prefix, string name) { Add(Ops.AttributeExists(prefix, name)); }
/// <summary> /// Generates human-readable text of this attribute selector. /// </summary> public void AttributeSubstring(NamespacePrefix prefix, string name, string value) => Add($" which have attribute {name} whose value contains '{value}'");
/// <summary> /// Generates an <a href="http://www.w3.org/TR/css3-selectors/#attribute-selectors">attribute selector</a> /// that represents an element with the given attribute <paramref name="name"/>, /// its value either being exactly <paramref name="value"/> or beginning /// with <paramref name="value"/> immediately followed by "-" (U+002D). /// </summary> public virtual void AttributeDashMatch(NamespacePrefix prefix, string name, string value) { Add(Ops.AttributeDashMatch(prefix, name, value)); }
/// <summary> /// Generates human-readable text of this type selector. /// </summary> public void Type(NamespacePrefix prefix, string type) => Add($" <{type}> elements");
/// <summary> /// Indicates whether this instance and another are equal. /// </summary> public bool Equals(NamespacePrefix other) { return(Text == other.Text); }
/// <summary> /// Generates human-readable text of this universal selector. /// </summary> public void Universal(NamespacePrefix prefix) => Add(" elements");
public void AttributeNotEqual(NamespacePrefix prefix, string name, string value) { Add(Ops.AttributeNotEqual(prefix, name, value)); }
/// <summary> /// Delegates to <see cref="Primary"/> then <see cref="Secondary"/> generator. /// </summary> public void AttributeExists(NamespacePrefix prefix, string name) { Primary.AttributeExists(prefix, name); Secondary.AttributeExists(prefix, name); }
/// <summary> /// Generates human-readable text of this attribute selector. /// </summary> public void AttributeExists(NamespacePrefix prefix, string name) { Add(string.Format(" which have attribute {0} defined", name)); }
/// <summary> /// Delegates to <see cref="Primary"/> then <see cref="Secondary"/> generator. /// </summary> public void AttributeSubstring(NamespacePrefix prefix, string name, string value) { Primary.AttributeSubstring(prefix, name, value); Secondary.AttributeSubstring(prefix, name, value); }
/// <summary> /// Delegates to <see cref="Primary"/> then <see cref="Secondary"/> generator. /// </summary> public void Universal(NamespacePrefix prefix) { Primary.Universal(prefix); Secondary.Universal(prefix); }