C# Class Microsoft.Html.Core.Tree.Nodes.AttributeNode

HTML tree node that represents an attribute
Inheritance: TreeNode
Mostrar archivo Open project: Microsoft/RTVS Class Usage Examples

Public Methods

Method Description
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

Protected Methods

Method Description
AttributeNode ( ElementNode parent, AttributeToken token ) : System

Private Methods

Method Description
ToString ( ) : string
UpdateValue ( ITextProvider textProvider ) : void

Method Details

AttributeNode() protected method

protected AttributeNode ( ElementNode parent, AttributeToken token ) : System
parent ElementNode
token Microsoft.Html.Core.Parser.Tokens.AttributeToken
return System

Create() public static method

public static Create ( ElementNode parent, AttributeToken token ) : AttributeNode
parent ElementNode
token Microsoft.Html.Core.Parser.Tokens.AttributeToken
return AttributeNode

GetPositionType() public method

public GetPositionType ( int position ) : HtmlPositionType
position int
return HtmlPositionType

HasEqualSign() public method

Tells if attribute has an equal sign
public HasEqualSign ( ) : bool
return bool

HasName() public method

Determines of attribute has name
public HasName ( ) : bool
return bool

HasPrefix() public method

Determines if attribute name has namespace prefix
public HasPrefix ( ) : bool
return bool

HasQualifiedName() public method

Determines if attribute has qualified name (i.e. both prefix and name)
public HasQualifiedName ( ) : bool
return bool

HasValue() public method

Detemines if attribute has a value
public HasValue ( ) : bool
return bool

IsScriptAttribute() public method

Determines if element is a script-type atribute (like onclick="")
public IsScriptAttribute ( ) : bool
return bool

IsStandalone() public method

Determines if attribute is a standalone attribute (i.e. does not have equal sign or value)
public IsStandalone ( ) : bool
return bool

IsStyleAttribute() public method

Determines if attributes is a style attribute
public IsStyleAttribute ( ) : bool
return bool

Shift() public method

public Shift ( int offset ) : void
offset int
return void

ShiftStartingFrom() public method

public ShiftStartingFrom ( int position, int offset ) : void
position int
offset int
return void

ValueContainsArtifacts() public method

Determines if attrubute value contains artifacts
public ValueContainsArtifacts ( ) : bool
return bool