Beispiel #1
0
        private void InvalidateMarker(MarginBarMarkerBase marker)
        {
            Invalidate(marker.InvalidationRectangle);

            Rectangle markerRectangle = GetMarkerRectangle(marker);

            markerRectangle.Inflate(1, 1);

            Invalidate(markerRectangle);
        }
Beispiel #2
0
        private void InvalidateImageMarkerControl(MarginBarMarkerBase marker)
        {
            if (ImageMarkerControl != null)
            {
                if (!ImageMarkerControl.Shown)
                {
                    ImageMarkerControl.Show();
                }

                ImageMarkerControl.UpdateLines(GetImageMarkerLine(marker));
            }
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
 private Rectangle GetMarkerRectangle(MarginBarMarkerBase marker)
 {
     return(marker.GetRectangle(Padding.Left, GetActualRulerLength()));
 }