TextParser Library | ComponentOne
C1.TextParser Namespace / HtmlExtractor Class / AddPlaceHolder Method / AddPlaceHolder(String,String,Int32,Int32) Method
The name to be used to refer to the place holder.
The XPath of the html element containing the selected text from the place holder.
The 0-based character index where the selected text begins regarding to the TextContent property of the html element pointed by fixedPlaceHolderXPath.
The number of characters of the selected text.



In This Topic
    AddPlaceHolder(String,String,Int32,Int32) Method
    In This Topic
    Add a new fixed place holder to the template specification used by this HtmlExtractor.
    Syntax
    'Declaration
     
    
    Public Overloads Sub AddPlaceHolder( _
       ByVal fixedPlaceHolderName As String, _
       ByVal fixedPlaceHolderXPath As String, _
       ByVal selectionBeginIndex As Integer, _
       ByVal selectionLength As Integer _
    ) 
    'Usage
     
    
    Dim instance As HtmlExtractor
    Dim fixedPlaceHolderName As String
    Dim fixedPlaceHolderXPath As String
    Dim selectionBeginIndex As Integer
    Dim selectionLength As Integer
     
    instance.AddPlaceHolder(fixedPlaceHolderName, fixedPlaceHolderXPath, selectionBeginIndex, selectionLength)

    Parameters

    fixedPlaceHolderName
    The name to be used to refer to the place holder.
    fixedPlaceHolderXPath
    The XPath of the html element containing the selected text from the place holder.
    selectionBeginIndex
    The 0-based character index where the selected text begins regarding to the TextContent property of the html element pointed by fixedPlaceHolderXPath.
    selectionLength
    The number of characters of the selected text.
    Exceptions
    ExceptionDescription
    The exception that is thrown when one of the arguments provided to a method is not valid.
    The exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked method.
    See Also