Class HapAttribute
An implementation of IAttribute based upon an HTML Agility Pack HtmlAgilityPack.HtmlAttribute.
Implements
Inherited Members
Namespace: ZptSharp.Dom
Assembly: ZptSharp.HtmlAgilityPack.dll
Syntax
public class HapAttribute : AttributeBase, IAttribute
Constructors
| Improve this Doc View SourceHapAttribute(HtmlAttribute)
Initializes a new instance of the HapAttribute class.
Declaration
public HapAttribute(HtmlAttribute nativeAttribute)
Parameters
Type | Name | Description |
---|---|---|
HtmlAgilityPack.HtmlAttribute | nativeAttribute | Native 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 HAP attribute.
Declaration
public HtmlAttribute NativeAttribute { get; }
Property Value
Type | Description |
---|---|
HtmlAgilityPack.HtmlAttribute | 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 HapAttribute.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the current HapAttribute. |