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

Type: System.String

Attribute name.

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 a line terminator.

Syntax

C# 
public string AttributesToString( 
   string attrName
)

Parameters

attrName

Type: System.String

Attribute name.

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.