[]
Returns the rectangle for the leading edge of the character at the specified index.
public Rect GetRectFromCharacterIndex(int charIndex)
Public Function GetRectFromCharacterIndex(charIndex As Integer) As Rect
Type | Name | Description |
---|---|---|
int | charIndex | The zero-based character index of the character for which to retrieve the rectangle. |
Type | Description |
---|---|
Rect | A rectangle for the leading edge of the character at the specified character index, or Rect.Empty if a bounding rectangle cannot be determined. |
Type | Condition |
---|---|
ArgumentOutOfRangeException |
|
Returns the rectangle for the leading or trailing edge of the character at the specified index.
public Rect GetRectFromCharacterIndex(int charIndex, bool trailingEdge)
Public Function GetRectFromCharacterIndex(charIndex As Integer, trailingEdge As Boolean) As Rect
Type | Name | Description |
---|---|---|
int | charIndex | The zero-based character index of the character for which to retrieve the bounding rectangle. |
bool | trailingEdge | true to get the trailing edge of the character; false to get the leading edge of the character. |
Type | Description |
---|---|
Rect | A bounding rectangle for the character at the specified character index, or System.Windows.Rect.Empty if a bounding rectangle cannot be determined. |
Type | Condition |
---|---|
ArgumentOutOfRangeException |
|