ComponentOne XmlEditor for WinForms: XmlEditor for WinForms Task-Based Help > Selecting Characters in the C1XmlEditor

Selecting Characters in the C1XmlEditor

You can use the SelectionStart property to specify the first character to select in the range. Use the SelectionLength property to specify how many characters should be selected.

For example, the following code starts the selection after the second character in the C1XmlEditor and continues until six characters are selected:

private void button1_Click(object sender, EventArgs e)

        {

            C1XmlEditor1.SelectionStart = 2;

            C1XmlEditor1.SelectionLength = 6;

        }


Send comments about this topic to ComponentOne.
Copyright © 1987-2009 ComponentOne LLC. All rights reserved.