Show / Hide Table of Contents

Class AngleSharpAttribute

An implementation of IAttribute based upon an AngleSharp AngleSharp.Dom.IAttr.

Inheritance
System.Object
AttributeBase
AngleSharpAttribute
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.AngleSharp.dll
Syntax
public class AngleSharpAttribute : AttributeBase, IAttribute

Constructors

| Improve this Doc View Source

AngleSharpAttribute(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 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 AngleSharp attribute.

Declaration
public IAttr NativeAttribute { get; }
Property Value
Type Description
AngleSharp.Dom.IAttr

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 AngleSharpAttribute.

Declaration
public override string ToString()
Returns
Type Description
System.String

A System.String that represents the current AngleSharpAttribute.

Overrides
System.Object.ToString()

Implements

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