Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / GcTextBox Class / GetRectFromCharacterIndex Method / GetRectFromCharacterIndex(Int32) Method
The zero-based character index of the character for which to retrieve the rectangle.


In This Topic
    GetRectFromCharacterIndex(Int32) Method
    In This Topic
    Returns the rectangle for the leading edge of the character at the specified index.
    Syntax
    'Declaration
     
    Public Overloads Function GetRectFromCharacterIndex( _
       ByVal charIndex As Integer _
    ) As Rect
    'Usage
     
    Dim instance As GcTextBox
    Dim charIndex As Integer
    Dim value As Rect
     
    value = instance.GetRectFromCharacterIndex(charIndex)
    public Rect GetRectFromCharacterIndex( 
       int charIndex
    )

    Parameters

    charIndex
    The zero-based character index of the character for which to retrieve the rectangle.

    Return Value

    A rectangle for the leading edge of the character at the specified character index, or Rect.Empty if a bounding rectangle cannot be determined.
    Exceptions
    ExceptionDescription
    charIndex is negative or greater than the length of the content.
    See Also