Paint.HorizontalGauge.CreateMarkerRectangle C# (CSharp) Method

CreateMarkerRectangle() protected method

Creates a rectangle that defines the location and size of the marker
protected CreateMarkerRectangle ( ) : Rectangle
return Microsoft.Xna.Framework.Rectangle
        protected override Rectangle CreateMarkerRectangle()
        {
            return new Rectangle(
                this.BoundedX((this.Bounds.X + (int)(this.CurrentMarker * this.Bounds.Width)) - (this.MarkerWidth / 2)),
                this.Bounds.Y,
                this.MarkerWidth,
                this.Bounds.Height);
        }