ZennoLab Assemblies Documentation
GetFrames Method
See Also  Example Send Feedback
ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > Document Class : GetFrames Method
recursive

Type: System.Boolean

true to return the all frames; otherwise, false.

Glossary Item Box

Returns the all frames.

Syntax

C# 
public DocumentCollection GetFrames( 
   bool recursive
)

Parameters

recursive

Type: System.Boolean

true to return the all frames; otherwise, false.

Return Value

Type: Zennolab.CommanCenter.DocumentCollection

The collection of frames.

Remarks

For getting frames correctly needs full download of tab (web page). Use the IsBusy property and WaitDownloading method of Tab class for waiting for page's downloading.

Example

The following code example demonstrates uses of the GetFrames method. Shows the method call in two versions.
C#Copy Code
// get document
Document doc = tab.MainDocument;
 
// get recursive all frames
DocumentCollection docCol1 = doc.GetFrames(true);
 
// get all frames from first level
DocumentCollection docCol2 = doc.GetFrames(false);
PHPCopy Code
// get document
$doc = $tab->MainDocument;
 
// get recursive all frames
$docCol1 = $doc->GetFrames(true);
 
// get all frames from first level
$docCol2 = $doc->GetFrames(false);

Requirements

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

See Also

© 2013 All Rights Reserved.