[]
        
(Showing Draft Content)

C1.TextParser.HtmlExtractor.AddPlaceHolder

AddPlaceHolder Method

AddPlaceHolder(string, string, int, int)

Add a new fixed place holder to the template specification used by this HtmlExtractor.

Declaration
public void AddPlaceHolder(string fixedPlaceHolderName, string fixedPlaceHolderXPath, int selectionBeginIndex, int selectionLength)
Public Sub AddPlaceHolder(fixedPlaceHolderName As String, fixedPlaceHolderXPath As String, selectionBeginIndex As Integer, selectionLength As Integer)
Parameters
Type Name Description
string fixedPlaceHolderName

The name to be used to refer to the place holder.

string fixedPlaceHolderXPath

The XPath of the html element containing the selected text from the place holder.

int selectionBeginIndex

The 0-based character index where the selected text begins regarding to the TextContent property of the html element pointed by fixedPlaceHolderXPath.

int selectionLength

The number of characters of the selected text.

Exceptions
Type Condition
ArgumentException
ArgumentOutOfRangeException

AddPlaceHolder(string, string)

Add a new fixed place holder to the template specification used by this HtmlExtractor.

Declaration
public void AddPlaceHolder(string fixedPlaceHolderName, string fixedPlaceHolderXPath)
Public Sub AddPlaceHolder(fixedPlaceHolderName As String, fixedPlaceHolderXPath As String)
Parameters
Type Name Description
string fixedPlaceHolderName

The name to be used to refer to the place holder.

string fixedPlaceHolderXPath

The XPath of the html element containing the selected text from the place holder.

Exceptions
Type Condition
ArgumentException
ArgumentOutOfRangeException

AddPlaceHolder(string, string, string, int, int)

Add a new repeated place holder to the template specification used by this HtmlExtractor.

Declaration
public void AddPlaceHolder(string repeatedBlockName, string repeatedPlaceHolderName, string repeatedPlaceHolderXPath, int selectionBeginIndex, int selectionLength)
Public Sub AddPlaceHolder(repeatedBlockName As String, repeatedPlaceHolderName As String, repeatedPlaceHolderXPath As String, selectionBeginIndex As Integer, selectionLength As Integer)
Parameters
Type Name Description
string repeatedBlockName

The name of the repeated block in which the repeated place holder belongs.

string repeatedPlaceHolderName

The name to be used to refer to the place holder.

string repeatedPlaceHolderXPath

The XPath of the html element containing the selected text from the place holder.

int selectionBeginIndex

The 0-based character index where the selected text begins regarding to the TextContent property of the html element pointed by repeatedPlaceHolderXPath.

int selectionLength

The number of characters of the selected text.

Exceptions
Type Condition
ArgumentException
ArgumentOutOfRangeException

AddPlaceHolder(string, string, string)

Add a new repeated place holder to the template specification used by this HtmlExtractor/>.

Declaration
public void AddPlaceHolder(string repeatedBlockName, string repeatedPlaceHolderName, string repeatedPlaceHolderXPath)
Public Sub AddPlaceHolder(repeatedBlockName As String, repeatedPlaceHolderName As String, repeatedPlaceHolderXPath As String)
Parameters
Type Name Description
string repeatedBlockName

The name of the repeated block in which the repeated place holder belongs.

string repeatedPlaceHolderName

The name to be used to refer to the place holder.

string repeatedPlaceHolderXPath

The XPath of the html element containing the selected text from the place holder.

Exceptions
Type Condition
ArgumentException
ArgumentOutOfRangeException

AddPlaceHolder(string, string, string, string, int, int)

Add a new repeated place holder to the template specification used by this HtmlExtractor.

Declaration
public void AddPlaceHolder(string repeatedBlockName, string repeatedPlaceHolderName, string repeatedPlaceHolderXPath, string repeatedPlaceHolderXPathInNextBlock, int selectionBeginIndex, int selectionLength)
Public Sub AddPlaceHolder(repeatedBlockName As String, repeatedPlaceHolderName As String, repeatedPlaceHolderXPath As String, repeatedPlaceHolderXPathInNextBlock As String, selectionBeginIndex As Integer, selectionLength As Integer)
Parameters
Type Name Description
string repeatedBlockName

The name of the repeated block in which the repeated place holder belongs.

string repeatedPlaceHolderName

The name to be used to refer to the place holder.

string repeatedPlaceHolderXPath

The XPath of the html element containing the selected text from the place holder.

string repeatedPlaceHolderXPathInNextBlock

The XPath of the element corresponding to repeatedPlaceHolderXPath in the following block instance.

int selectionBeginIndex

The 0-based character index where the selected text begins regarding to the TextContent property of the html element pointed by repeatedPlaceHolderXPath.

int selectionLength

The number of characters of the selected text.

Exceptions
Type Condition
ArgumentException
ArgumentOutOfRangeException

AddPlaceHolder(string, string, string, string)

Add a new repeated place holder to the template specification used by this HtmlExtractor.

Declaration
public void AddPlaceHolder(string repeatedBlockName, string repeatedPlaceHolderName, string repeatedPlaceHolderXPath, string repeatedPlaceHolderXPathInNextBlock)
Public Sub AddPlaceHolder(repeatedBlockName As String, repeatedPlaceHolderName As String, repeatedPlaceHolderXPath As String, repeatedPlaceHolderXPathInNextBlock As String)
Parameters
Type Name Description
string repeatedBlockName

The name of the repeated block in which the repeated place holder belongs.

string repeatedPlaceHolderName

The name to be used to refer to the place holder.

string repeatedPlaceHolderXPath

The XPath of the html element containing the selected text from the place holder.

string repeatedPlaceHolderXPathInNextBlock

The XPath of the element corresponding to repeatedPlaceHolderXPath in the following block instance.

Exceptions
Type Condition
ArgumentException
ArgumentOutOfRangeException