/// <summary> /// Draws the vertical separator above the specified origin and with the specified width. /// </summary> /// <param name="separator">The separator to draw.</param> /// <param name="origin">The location where to draw.</param> /// <param name="width">The separator width.</param> public virtual void DrawVerticalSeparator(VerticalSeparators separator, Point origin, Measure width) { Debug.Assert(WpfDrawingContext != null); switch (separator) { case VerticalSeparators.None: break; case VerticalSeparators.Line: Pen LinePen = GetPen(PenSettings.VerticalSeparator); Measure Height = VerticalSeparatorHeightTable[VerticalSeparators.Line]; double X = PagePadding.Left.Draw + origin.X.Draw; double Y = PagePadding.Left.Draw + origin.Y.Draw - (Height.Draw / 2); System.Windows.Point Point0 = new System.Windows.Point(X, Y); System.Windows.Point Point1 = new System.Windows.Point(X + width.Draw, Y); WpfDrawingContext.DrawLine(LinePen, Point0, Point1); break; } }
/// <summary> /// Prints the vertical separator above the specified origin and with the specified width. /// </summary> /// <param name="separator">The separator to print.</param> /// <param name="origin">The location where to print.</param> /// <param name="width">The separator width.</param> public virtual void PrintVerticalSeparator(VerticalSeparators separator, Point origin, Measure width) { BrushSettings Brush = BrushSettings.Symbol; switch (separator) { case VerticalSeparators.None: break; case VerticalSeparators.Line: string Line = string.Empty; for (int i = 0; i < width.Print; i++) { Line += "━"; } int X = origin.X.Print; int Y = origin.Y.Print - 2; Debug.Assert(Y >= 0); PrintableArea.Print(Line, X, Y, Brush); break; } }
public Measure GetVerticalSeparatorHeight(VerticalSeparators separator) { return(Measure.Zero); }
public void PrintVerticalSeparator(VerticalSeparators separator, Point origin, Measure width) { }
/// <summary> /// Gets the height corresponding to a separator between cells in a column. /// </summary> /// <param name="separator">The separator.</param> public virtual Measure GetVerticalSeparatorHeight(VerticalSeparators separator) { return(VerticalSeparatorHeightTable[separator]); }