See Also

RichTextBox Class  | RichTextBox Members

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

SelectionCharOffset Property

Gets or sets a value indicating where text in the control appears on the baseline, as a superscript or as a subscript below the baseline.

[Visual Basic]
Public Property SelectionCharOffset As Single
[C#]
public float SelectionCharOffset {get; set;}

Return Type

A number that specifies the character offset in inches.

The value of this property must be between -2000 and 2000.

If this property is set to zero, the text appears on the baseline. If it is a positive number, the number specifies the number of inches by which to raise the text selection above the baseline. If it is a negative number, this number specifies the number of inches by which to subscript the text selection. You can use this property to specify text as superscript or subscript.

Example

[C#] 

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

    if (this.rtbActiveReport.Find("footnote") != -1) 
    { 
        this.rtbActiveReport.SelectionStart = this.rtbActiveReport.Find("footnote"); 
        this.rtbActiveReport.SelectionLength = 11; 
        this.rtbActiveReport.SelectionCharOffset = .05f; 
    } 
}

[Visual Basic] 

Private Sub Detail_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail.Format
    If Not Me.rtbActiveReport.Find("footnote") = -1 Then
        Me.rtbActiveReport.SelectionStart = Me.rtbActiveReport.Find("footnote")
        Me.rtbActiveReport.SelectionLength = 11
        Me.rtbActiveReport.SelectionCharOffset = 0.05
    End If
End Sub

See Also

RichTextBox Class  | RichTextBox Members

 

 


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