ZennoLab Assemblies Documentation
AttributesToString(String,String) Method
Example 

Type: System.String

Attribute name.

Type: System.String

Delimiter that separates attributes in the text.

Returns the attributes of all elements of the collection with the given name and assembles them into text. The attributes recorded through the specified delimiter.
Syntax
public string AttributesToString( 
   string attrName,
   string delemiter
)

Parameters

attrName

Type: System.String

Attribute name.

delemiter

Type: System.String

Delimiter that separates attributes in the text.

Return Value

Type: System.String

Attributes of all elements of the collection with the given name in text form

Example
The following code example demonstrates the AttributesToString method
// find elements by tag
HtmlElementCollection heCol = tab.FindElementsByTags("input:checkbox");
 
// get attributes to string
string result = heCol.AttributesToString("FullTagName", ":");
// find elements by tag
$heCol = $tab->FindElementsByTags("input:checkbox");
 
// get attributes to string
$result = $heCol->AttributesToString("FullTagName", ":");
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

HtmlElementCollection Class
HtmlElementCollection Members
Overload List

Send Feedback