Editor for WinForms | ComponentOne
C1.Win.C1Editor.4.8 Assembly / C1.Win.C1Editor Namespace / C1Editor Class / CreateRange Method / CreateRange(C1TextPointer,C1TextPointer) Method
The start pointer.
The end pointer.
Example

In This Topic
    CreateRange(C1TextPointer,C1TextPointer) Method
    In This Topic
    Creates a range between the specified start and end C1TextPointer.
    Syntax
    'Declaration
     
    Public Overloads Function CreateRange( _
       ByVal start As C1TextPointer, _
       ByVal end As C1TextPointer _
    ) As C1TextRange
    public C1TextRange CreateRange( 
       C1TextPointer start,
       C1TextPointer end
    )

    Parameters

    start
    The start pointer.
    end
    The end pointer.

    Return Value

    The text range.
    Example
    This code demonstrates the CreateRange(Int32,Int32) method.
    private void button1_Click(object sender, EventArgs e)
    {
        c1Editor1.LoadXml("<html><head><title>Document</title></head><body><p>12<span>3</span>456</p></body></html>", new Uri("c:\\"));
        C1TextRange r = c1Editor1.CreateRange(1, 3);
        Console.WriteLine(r.Text);
        // Output: 234
    }
    See Also