C# Класс Microsoft.Html.Core.Tree.Nodes.AttributeNode

HTML tree node that represents an attribute
Наследование: TreeNode
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Create ( ElementNode parent, AttributeToken token ) : AttributeNode
GetPositionType ( int position ) : HtmlPositionType
HasEqualSign ( ) : bool

Tells if attribute has an equal sign

HasName ( ) : bool

Determines of attribute has name

HasPrefix ( ) : bool

Determines if attribute name has namespace prefix

HasQualifiedName ( ) : bool

Determines if attribute has qualified name (i.e. both prefix and name)

HasValue ( ) : bool

Detemines if attribute has a value

IsScriptAttribute ( ) : bool

Determines if element is a script-type atribute (like onclick="")

IsStandalone ( ) : bool

Determines if attribute is a standalone attribute (i.e. does not have equal sign or value)

IsStyleAttribute ( ) : bool

Determines if attributes is a style attribute

Shift ( int offset ) : void
ShiftStartingFrom ( int position, int offset ) : void
ValueContainsArtifacts ( ) : bool

Determines if attrubute value contains artifacts

Защищенные методы

Метод Описание
AttributeNode ( ElementNode parent, AttributeToken token ) : System

Приватные методы

Метод Описание
ToString ( ) : string
UpdateValue ( ITextProvider textProvider ) : void

Описание методов

AttributeNode() защищенный Метод

protected AttributeNode ( ElementNode parent, AttributeToken token ) : System
parent ElementNode
token Microsoft.Html.Core.Parser.Tokens.AttributeToken
Результат System

Create() публичный статический Метод

public static Create ( ElementNode parent, AttributeToken token ) : AttributeNode
parent ElementNode
token Microsoft.Html.Core.Parser.Tokens.AttributeToken
Результат AttributeNode

GetPositionType() публичный Метод

public GetPositionType ( int position ) : HtmlPositionType
position int
Результат HtmlPositionType

HasEqualSign() публичный Метод

Tells if attribute has an equal sign
public HasEqualSign ( ) : bool
Результат bool

HasName() публичный Метод

Determines of attribute has name
public HasName ( ) : bool
Результат bool

HasPrefix() публичный Метод

Determines if attribute name has namespace prefix
public HasPrefix ( ) : bool
Результат bool

HasQualifiedName() публичный Метод

Determines if attribute has qualified name (i.e. both prefix and name)
public HasQualifiedName ( ) : bool
Результат bool

HasValue() публичный Метод

Detemines if attribute has a value
public HasValue ( ) : bool
Результат bool

IsScriptAttribute() публичный Метод

Determines if element is a script-type atribute (like onclick="")
public IsScriptAttribute ( ) : bool
Результат bool

IsStandalone() публичный Метод

Determines if attribute is a standalone attribute (i.e. does not have equal sign or value)
public IsStandalone ( ) : bool
Результат bool

IsStyleAttribute() публичный Метод

Determines if attributes is a style attribute
public IsStyleAttribute ( ) : bool
Результат bool

Shift() публичный Метод

public Shift ( int offset ) : void
offset int
Результат void

ShiftStartingFrom() публичный Метод

public ShiftStartingFrom ( int position, int offset ) : void
position int
offset int
Результат void

ValueContainsArtifacts() публичный Метод

Determines if attrubute value contains artifacts
public ValueContainsArtifacts ( ) : bool
Результат bool