ARCed.Controls.FontSelector.GetFont C# (CSharp) Метод

GetFont() приватный Метод

private GetFont ( ) : Font
Результат System.Drawing.Font
        private Font GetFont()
        {
            var style = FontStyle.Regular;
            if (this.checkBoxBold.Checked) style |= FontStyle.Bold;
            if (this.checkBoxItalic.Checked) style |= FontStyle.Italic;
            if (this.checkBoxUnderline.Checked) style |= FontStyle.Underline;
            var size = (float)this.numericSize.Value;
            string fontName = this.fontComboBox.SelectedFontFamily;
            return FontHelper.GetFont(fontName, size, style);
        }