C1.Win.C1Editor.4 Assembly > C1.Win.C1Editor Namespace > C1Editor Class > CreateRange Method : CreateRange(Int32,Int32) Method |
'Declaration Public Overloads Function CreateRange( _ ByVal start As System.Integer, _ ByVal length As System.Integer _ ) As C1TextRange
public C1TextRange CreateRange( System.int start, System.int length )
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 }