コード例 #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));
 }
コード例 #6
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));
 }
コード例 #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);
 }
コード例 #8
0
 public virtual void AttributeRegexMatch(NamespacePrefix prefix, string name, string value)
 {
     Add(Ops.AttributeRegexMatch(prefix, name, value), "AttributeRegexMatch", prefix, name, value);
 }
コード例 #9
0
 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);
 }
コード例 #12
0
 /// <summary>
 /// Generates human-readable text of this type selector.
 /// </summary>
 public void Type(NamespacePrefix prefix, string type)
 {
     Add(string.Format(" <{0}> elements", type));
 }
コード例 #13
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));
 }
コード例 #14
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));
 }
コード例 #15
0
 /// <summary>
 /// Generates human-readable text of this universal selector.
 /// </summary>
 public void Universal(NamespacePrefix prefix)
 {
     Add(" elements");
 }
コード例 #16
0
 /// <summary>
 /// Generates human-readable text of this attribute selector.
 /// </summary>
 public void AttributeExists(NamespacePrefix prefix, string name) =>
 Add($" which have attribute {name} defined");
コード例 #17
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));
 }
コード例 #18
0
 /// <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}'");
コード例 #19
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));
 }
コード例 #20
0
 /// <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);
 }
コード例 #22
0
 /// <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));
 }
コード例 #24
0
 /// <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));
 }
コード例 #26
0
 /// <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));
 }
コード例 #28
0
 /// <summary>
 /// Generates human-readable text of this type selector.
 /// </summary>
 public void Type(NamespacePrefix prefix, string type) =>
 Add($" <{type}> elements");
コード例 #29
0
 /// <summary>
 /// Indicates whether this instance and another are equal.
 /// </summary>
 public bool Equals(NamespacePrefix other)
 {
     return(Text == other.Text);
 }
コード例 #30
0
 /// <summary>
 /// Generates human-readable text of this universal selector.
 /// </summary>
 public void Universal(NamespacePrefix prefix) =>
 Add(" elements");
コード例 #31
0
 /// <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));
 }
コード例 #33
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));
 }
コード例 #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);
 }
コード例 #35
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));
 }
コード例 #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);
 }
コード例 #37
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));
 }
コード例 #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);
 }
コード例 #44
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));
 }