Error processing SSI file
LEADTOOLS Leadtools.Documents (Leadtools.Documents assembly)

Show in webframe

AutoParseLinks Property






Indicates whether to parse links from the text of the pages.
Syntax
public bool AutoParseLinks {get; set;}
'Declaration
 
Public Property AutoParseLinks As Boolean
'Usage
 
Dim instance As DocumentText
Dim value As Boolean
 
instance.AutoParseLinks = value
 
value = instance.AutoParseLinks
public boolean getAutoParseLinks()
public void setAutoParseLinks(boolean value)
            
public:
property bool AutoParseLinks {
   bool get();
   void set (    bool value);
}

Property Value

true to parse links from the text of the pages, otherwise; false. Default value is true.
Remarks

The document class supports automatic parsing of two types of links

The page links are parsed from the original document when DocumentStructure.Parse is called and the value of DocumentStructure.ParsePageLinks is set to true. Any links found are stored inside the page and can be retrieved using DocumentPage.GetLinks.

The hyperlinks are parsed the first time DocumentPage.GetText is called and the value of DocumentText.AutoParseLinks is set to true (the default value). The document object will use the regular expressions stored in LinkPatterns to find any matches in the text of the page with each match added as a link of type DocumentLinkType.Value to the page. These can also be retrieved with DocumentPage.GetLinks after GetText returns.

The link parsing is performed by calling DocumentPageText.ParseLinks on the DocumentPageText object for the page using the regular expressions stored in LinkPatterns.

If the value of AutoParseLinks is false then no automatic parsing for links will occur.

Example

For an example, refer to GetLinks

Requirements

Target Platforms

See Also

Reference

DocumentText Class
DocumentText Members

Error processing SSI file
   Leadtools.Documents requires a Document or Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features