示例#1
0
 /// <summary>
 /// Indicates whether this instance and another are equal.
 /// </summary>
 public bool Equals(NamespacePrefix other)
 {
     return Text == other.Text;
 }
示例#2
0
 /// <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));
 }
示例#3
0
 /// <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));
 }
示例#5
0
 /// <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));
 }
示例#7
0
 /// <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);
 }
示例#10
0
 /// <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));
示例#11
0
 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 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 attribute selector.
 /// </summary>
 public void AttributeIncludes(NamespacePrefix prefix, string name, string value) =>
 Add($" which have attribute {name} that includes the word '{value}'");
示例#21
0
 /// <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}'");
示例#23
0
 /// <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}'");
示例#25
0
 /// <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}'");
示例#27
0
 /// <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");
 /// <summary>
 /// Generates human-readable text of this type selector.
 /// </summary>
 public void Type(NamespacePrefix prefix, string type)
 {
     Add(string.Format(" <{0}> elements", type));
 }
示例#32
0
 public void AttributeNotEqual(NamespacePrefix prefix, string name, string value)
 {
     Add(Ops.AttributeNotEqual(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));
 }
示例#34
0
 /// <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));
 }
示例#36
0
 /// <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);
 }
 /// <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));
 }
示例#38
0
 /// <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);
 }
示例#39
0
 /// <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);
 }
示例#40
0
 /// <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);
 }
示例#41
0
 /// <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);
 }
示例#42
0
 /// <summary>
 /// Delegates to <see cref="Primary"/> then <see cref="Secondary"/> generator.
 /// </summary>
 public void Universal(NamespacePrefix prefix)
 {
     Primary.Universal(prefix);
     Secondary.Universal(prefix);
 }
示例#43
0
 /// <summary>
 /// Delegates to <see cref="Primary"/> then <see cref="Secondary"/> generator.
 /// </summary>
 public void Universal(NamespacePrefix prefix)
 {
     Primary.Universal(prefix);
     Secondary.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));
 }