public LineElement(LineElementKind kind, double x, double top, double bottom, Pen pen) { Canvas.SetTop(this, top); Kind = kind; this.x = x; this.top = top; this.bottom = bottom; this.pen = pen; }
HexColumnLineKind GetColumnLineKind(LineElementKind lineElemKind) { switch (lineElemKind) { case LineElementKind.Column0: return(wpfHexView.Options.GetColumnLine0Kind()); case LineElementKind.Column1: return(wpfHexView.Options.GetColumnLine1Kind()); case LineElementKind.Group0: return(wpfHexView.Options.GetColumnGroupLine0Kind()); case LineElementKind.Group1: return(wpfHexView.Options.GetColumnGroupLine1Kind()); default: throw new ArgumentOutOfRangeException(nameof(lineElemKind)); } }
HexColumnLineKind GetColumnLineKind(LineElementKind lineElemKind) { switch (lineElemKind) { case LineElementKind.Column0: return wpfHexView.Options.GetColumnLine0Kind(); case LineElementKind.Column1: return wpfHexView.Options.GetColumnLine1Kind(); case LineElementKind.Group0: return wpfHexView.Options.GetColumnGroupLine0Kind(); case LineElementKind.Group1: return wpfHexView.Options.GetColumnGroupLine1Kind(); default: throw new ArgumentOutOfRangeException(nameof(lineElemKind)); } }