ZennoLab Assemblies Documentation
AttributesToString(String,String) Method
See Also  Example Send Feedback
ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > HtmlElementCollection Class > AttributesToString Method : AttributesToString(String,String) Method
attrName

Type: System.String

Attribute name.

delemiter

Type: System.String

Delimiter that separates attributes in the text.

Glossary Item Box

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

C# 
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
C#Copy Code
// find elements by tag
HtmlElementCollection heCol = tab.FindElementsByTags("input:checkbox");
 
// get attributes to string
string result = heCol.AttributesToString("FullTagName", ":");
PHPCopy Code
// find elements by tag
$heCol = $tab->FindElementsByTags("input:checkbox");
 
// get attributes to string
$result = $heCol->AttributesToString("FullTagName", ":");

Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven

See Also

© 2013 All Rights Reserved.