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

            Rectangle markerRectangle = GetMarkerRectangle(marker);

            markerRectangle.Inflate(1, 1);

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

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