示例#1
0
 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;
 }
示例#2
0
        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));
            }
        }
示例#3
0
		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));
			}
		}
示例#4
0
			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;
			}