TodoApp.iOS.Controls.CalendarMonthView.DrawMonthLabel C# (CSharp) Method

DrawMonthLabel() private method

private DrawMonthLabel ( CGRect rect ) : void
rect CGRect
return void
        private void DrawMonthLabel( CGRect rect )
        {
            var r = new RectangleF(new PointF(0, 2), new SizeF {Width = width - HorizontalPadding*2, Height = 42});
            UIColor.DarkGray.SetColor();
            new NSString(CurrentMonthYear.ToString("MMMM yyyy")).DrawString(r, UIFont.BoldSystemFontOfSize(16),
                UILineBreakMode.WordWrap, UITextAlignment.Center);
        }