AttributeSelector Class
An attribute selector (https://drafts.csswg.org/selectors-4/#attribute-selectors).
public sealed class AttributeSelector : SimpleSelector- Inheritance
SimpleSelectorAttributeSelector
Properties
| Name | Description |
|---|---|
| CaseSensitivity | Gets how the attribute value is compared. |
| Name | Gets the name of the attribute to match. |
| Namespace | Gets the namespace constraint of the attribute. |
| Operator | Gets the operator used to compare the attribute value. |
| Prefix | The namespace prefix as written ("*" for any namespace, "" for no namespace), or null when there is no prefix. |
| Specificity | Gets the specificity of the selector, always (0, 1, 0). |
| Value | The value, or the empty string for AttributeOperator.Exists. |
CaseSensitivity
Selector.csGets how the attribute value is compared.
public AttributeCaseSensitivity CaseSensitivity { get; }Property value
Name
Selector.csNamespace
Selector.csGets the namespace constraint of the attribute.
public NamespaceConstraint Namespace { get; }Property value
Operator
Selector.csGets the operator used to compare the attribute value.
public AttributeOperator Operator { get; }Property value
Prefix
Selector.csSpecificity
Selector.csGets the specificity of the selector, always (0, 1, 0).
public override Specificity Specificity { get; }Property value
Value
Selector.csThe value, or the empty string for AttributeOperator.Exists.
public string Value { get; }