public Draw ( TextView textView, Avalonia.Media.DrawingContext drawingContext ) : void | ||
textView | TextView | |
drawingContext | Avalonia.Media.DrawingContext | |
Résultat | void |
public void Draw(TextView textView, DrawingContext drawingContext)
{
var xPos = textView.TextSurfaceBounds.X + textView.CharSize.Width*120.0;
drawingContext.DrawLine(new Pen(brush, 1), new Point(xPos, 0), new Point(xPos, textView.Bounds.Bottom));
}