Class AngleSharpAttribute
An implementation of IAttribute based upon an AngleSharp AngleSharp.Dom.IAttr.
Implements
Inherited Members
Namespace: ZptSharp.Dom
Assembly: ZptSharp.AngleSharp.dll
Syntax
public class AngleSharpAttribute : AttributeBase, IAttribute
Constructors
| Improve this Doc View SourceAngleSharpAttribute(IAttr)
Initializes a new instance of the AngleSharpAttribute class.
Declaration
public AngleSharpAttribute(IAttr nativeAttribute)
Parameters
Type | Name | Description |
---|---|---|
AngleSharp.Dom.IAttr | nativeAttribute | The native DOM attribute. |
Properties
| Improve this Doc View SourceName
Gets the attribute name, including any relevant prefix.
Declaration
public override string Name { get; }
Property Value
Type | Description |
---|---|
System.String | The name. |
Overrides
| Improve this Doc View SourceNativeAttribute
Gets the native AngleSharp attribute.
Declaration
public IAttr NativeAttribute { get; }
Property Value
Type | Description |
---|---|
AngleSharp.Dom.IAttr | The native attribute. |
Value
Gets the attribute value.
Declaration
public override string Value { get; set; }
Property Value
Type | Description |
---|---|
System.String | The value. |
Overrides
Methods
| Improve this Doc View SourceIsInNamespace(Namespace)
Gets a value indicating whether or not the current instance is in the specified namespace.
Declaration
public override bool IsInNamespace(Namespace namespace)
Parameters
Type | Name | Description |
---|---|---|
Namespace | namespace | The namespace. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
| Improve this Doc View SourceIsNamespaceDeclarationFor(Namespace)
Gets a value indicating whether or not the current instance represents a namespace declaration for the specified namespace.
Declaration
public override bool IsNamespaceDeclarationFor(Namespace namespace)
Parameters
Type | Name | Description |
---|---|---|
Namespace | namespace | The namespace. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
| Improve this Doc View SourceMatches(AttributeSpec)
Gets a value indicating whether or not the current instance matches a specified attribute.
Declaration
public override bool Matches(AttributeSpec spec)
Parameters
Type | Name | Description |
---|---|---|
AttributeSpec | spec | The spec to match against. |
Returns
Type | Description |
---|---|
System.Boolean | true if the current instance matches the specified attribute; false if it does not. |
Overrides
| Improve this Doc View SourceToString()
Returns a System.String that represents the current AngleSharpAttribute.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the current AngleSharpAttribute. |