private void InvalidateMarker(MarginBarMarkerBase marker) { Invalidate(marker.InvalidationRectangle); Rectangle markerRectangle = GetMarkerRectangle(marker); markerRectangle.Inflate(1, 1); Invalidate(markerRectangle); }
private void InvalidateImageMarkerControl(MarginBarMarkerBase marker) { if (ImageMarkerControl != null) { if (!ImageMarkerControl.Shown) { ImageMarkerControl.Show(); } ImageMarkerControl.UpdateLines(GetImageMarkerLine(marker)); } }
private ImageMarkerLine GetImageMarkerLine(MarginBarMarkerBase marker) { Rectangle markerRectangle = GetMarkerRectangle(marker); ImageMarkerLine imageMarkerLine = new ImageMarkerLine { Color = ImageMarkerLineColor, DashStyle = ImageMarkerDashStyle, Orientation = Orientation.Vertical, Padding = new Padding(2), Value = markerRectangle.Left + (markerRectangle.Width / 2) }; return(imageMarkerLine); }
private Rectangle GetMarkerRectangle(MarginBarMarkerBase marker) { return(marker.GetRectangle(Padding.Left, GetActualRulerLength())); }