Пример #1
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));
 }
Пример #2
0
 /// <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));
 }
Пример #3
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));
 }
Пример #4
0
 /// <summary>
 /// Generates human-readable text of this type selector.
 /// </summary>
 public void Type(NamespacePrefix prefix, string type)
 {
     Add(string.Format(" <{0}> elements", type));
 }
Пример #5
0
 /// <summary>
 /// Generates human-readable text of this universal selector.
 /// </summary>
 public void Universal(NamespacePrefix prefix)
 {
     Add(" elements");
 }
Пример #6
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));
 }
Пример #7
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);
 }
Пример #8
0
 /// <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));
 }
Пример #9
0
 /// <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));
 }
Пример #10
0
 /// <summary>
 /// Delegates to <see cref="Primary"/> then <see cref="Secondary"/> generator.
 /// </summary>
 public void Universal(NamespacePrefix prefix)
 {
     Primary.Universal(prefix);
     Secondary.Universal(prefix);
 }
Пример #11
0
 /// <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));
 }
Пример #12
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);
 }
Пример #13
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);
 }
Пример #14
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);
 }
Пример #15
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));
 }
Пример #16
0
 /// <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));
 }
Пример #17
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));
 }
Пример #18
0
 /// <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));
 }
Пример #19
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));
 }
Пример #20
0
 /// <summary>
 /// Indicates whether this instance and another are equal.
 /// </summary>
 public bool Equals(NamespacePrefix other)
 {
     return(Text == other.Text);
 }