GetCharacterRect() 공개 메소드

public GetCharacterRect ( LogicalDirection direction ) : Rect
direction LogicalDirection
리턴 Rect
예제 #1
0
파일: Console.cs 프로젝트: anurse/Coco
 private static void AdjustMarker(Shape marker, TextPointer pointer)
 {
     var rect = pointer.GetCharacterRect(LogicalDirection.Forward);
     marker.Margin = new Thickness(rect.Left, rect.Top, 0, 0);
     marker.Visibility = System.Windows.Visibility.Visible;
     marker.Fill = pointer.LogicalDirection == LogicalDirection.Forward ? Brushes.HotPink : Brushes.Yellow;
 }