See Also

RichTextBox Class  | RichTextBox Members  | SelectionLength

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

SelectionStart Property

Gets or sets the starting point of text selected in the text box.

[Visual Basic]
Public Property SelectionStart As Integer
[C#]
public int SelectionStart {get; set;}

Return Type

The starting position of text selected in the text box.

Example

[C#] 

private void Detail_Format(object sender, System.EventArgs eArgs) 

    this.rtbActiveReport.SelectionStart = 0; 
    this.rtbActiveReport.SelectionLength = 100; 
    this.rtbActiveReport.SelectionRightIndent = 1; 
}

[Visual Basic] 

Private Sub Detail_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail.Format
    Me.rtbActiveReport.SelectionStart = 0
    Me.rtbActiveReport.SelectionLength = 100
    Me.rtbActiveReport.SelectionRightIndent = 0.5
End Sub

See Also

RichTextBox Class  | RichTextBox Members  | SelectionLength

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.