TextBox.GetRectFromCharacterIndex Method (Int32, Boolean)
Assembly: PresentationFramework (in presentationframework.dll)
public function GetRectFromCharacterIndex ( charIndex : int, trailingEdge : boolean ) : Rect
Zero-based character index of the character for which to retrieve the bounding rectangle.
A Boolean value indicating whether to include the leading edge or trailing edge of the character in the bounding rectangle. true to include the trailing edge; false to include leading edge.
Return ValueA bounding rectangle for the character at the specified character index, or Empty if a bounding rectangle cannot be determined.
Raised when charIndex is negative, or is greater than the length of content.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.