Show / Hide Table of Contents

Class HapAttribute

An implementation of IAttribute based upon an HTML Agility Pack HtmlAgilityPack.HtmlAttribute.

Inheritance
System.Object
AttributeBase
HapAttribute
Implements
IAttribute
Inherited Members
AttributeBase.Node
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: ZptSharp.Dom
Assembly: ZptSharp.HtmlAgilityPack.dll
Syntax
public class HapAttribute : AttributeBase, IAttribute

Constructors

| Improve this Doc View Source

HapAttribute(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 Source

Name

Gets the attribute name, including any relevant prefix.

Declaration
public override string Name { get; }
Property Value
Type Description
System.String

The name.

Overrides
AttributeBase.Name
| Improve this Doc View Source

NativeAttribute

Gets the native HAP attribute.

Declaration
public HtmlAttribute NativeAttribute { get; }
Property Value
Type Description
HtmlAgilityPack.HtmlAttribute

The native attribute.

| Improve this Doc View Source

Value

Gets the attribute value.

Declaration
public override string Value { get; set; }
Property Value
Type Description
System.String

The value.

Overrides
AttributeBase.Value

Methods

| Improve this Doc View Source

IsInNamespace(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

true, if the attribute is in the specified namespace, false otherwise.

Overrides
AttributeBase.IsInNamespace(Namespace)
| Improve this Doc View Source

IsNamespaceDeclarationFor(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

true, if the attribute is a declaration for the specified namespace, false otherwise.

Overrides
AttributeBase.IsNamespaceDeclarationFor(Namespace)
| Improve this Doc View Source

Matches(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
AttributeBase.Matches(AttributeSpec)
| Improve this Doc View Source

ToString()

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.

Overrides
System.Object.ToString()

Implements

IAttribute
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX