143 references to FontStyle
System.Drawing (61)
commonui\System\Drawing\Advanced\Font.cs (27)
44FontStyle fontStyle; 93FontStyle style = FontStyle.Regular; 113style = (FontStyle) sie.Value; 144/// the specified existing <see cref='System.Drawing.Font'/> and <see cref='System.Drawing.FontStyle'/>. 149public Font(Font prototype, FontStyle newStyle) 163public Font(FontFamily family, float emSize, FontStyle style, GraphicsUnit unit) { 174public Font(FontFamily family, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet) { 185public Font(FontFamily family, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont) { 196public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet) { 208public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont) { 223public Font(FontFamily family, float emSize, FontStyle style) { 235Initialize(family, emSize, FontStyle.Regular, unit, SafeNativeMethods.DEFAULT_CHARSET, false); 246Initialize(family, emSize, FontStyle.Regular, GraphicsUnit.Point, SafeNativeMethods.DEFAULT_CHARSET, false); 256public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit) { 270public Font(string familyName, float emSize, FontStyle style) { 282Initialize(familyName, emSize, FontStyle.Regular, unit, SafeNativeMethods.DEFAULT_CHARSET, IsVerticalName(familyName)); 293Initialize(familyName, emSize, FontStyle.Regular, GraphicsUnit.Point, SafeNativeMethods.DEFAULT_CHARSET, IsVerticalName(familyName)); 310FontStyle style = FontStyle.Regular; 345private void Initialize(string familyName, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont) 358private void Initialize(FontFamily family, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont) 622return(Style & FontStyle.Bold) != 0; 668return(Style & FontStyle.Italic) != 0; 707return(Style & FontStyle.Strikeout) != 0; 720return(Style & FontStyle.Underline) != 0; 970public FontStyle Style {
commonui\System\Drawing\Advanced\FontFamily.cs (7)
447/// Indicates whether the specified <see cref='System.Drawing.FontStyle'/> is 450public bool IsStyleAvailable(FontStyle style) { 466public int GetEmHeight(FontStyle style) { 484public int GetCellAscent(FontStyle style) { 501public int GetCellDescent(FontStyle style) { 515/// consecutive lines of text for this <see cref='System.Drawing.FontFamily'/> with the specified <see cref='System.Drawing.FontStyle'/>. 517public int GetLineSpacing(FontStyle style) {
commonui\System\Drawing\Advanced\Gdiplus.cs (7)
2944internal static extern int GdipIsStyleAvailable(HandleRef family, FontStyle style, out int isStyleAvailable); 2948internal static extern int GdipGetEmHeight(HandleRef family, FontStyle style, out int EmHeight); 2952internal static extern int GdipGetCellAscent(HandleRef family, FontStyle style, out int CellAscent); 2956internal static extern int GdipGetCellDescent(HandleRef family, FontStyle style, out int CellDescent); 2960internal static extern int GdipGetLineSpacing(HandleRef family, FontStyle style, out int LineSpaceing); 2979internal static extern int GdipCreateFont(HandleRef fontFamily, float emSize, FontStyle style, GraphicsUnit unit, out IntPtr font); 3010internal static extern int GdipGetFontStyle(HandleRef font, out FontStyle style);
commonui\System\Drawing\FontConverter.cs (20)
103FontStyle style = FontStyle.Regular; 160style |= (FontStyle)Enum.Parse(typeof(FontStyle), styleText, true); 170FontStyle validBits = FontStyle.Regular | FontStyle.Bold | FontStyle.Italic | FontStyle.Underline | FontStyle.Strikeout; 172throw new InvalidEnumArgumentException("style", (int)style, typeof(FontStyle)); 225if (font.Style != FontStyle.Regular){ 240if (font.Style != FontStyle.Regular){ 265else if (font.Style != FontStyle.Regular) { 279args[2] = font.Style; types[2] = typeof(FontStyle); 377FontStyle style = 0; 379style |= FontStyle.Bold; 382style |= FontStyle.Italic; 385style |= FontStyle.Strikeout; 388style |= FontStyle.Underline;
System.Web.DataVisualization (9)
Common\General\Chart.cs (9)
4165get { return this.GetFont(DefaultFamilyName, 8, FontStyle.Bold); } 4194public Font GetFont(string familyName, float size, FontStyle style) 4211public Font GetFont(FontFamily family, float size, FontStyle style) 4229public Font GetFont(FontFamily family, float size, FontStyle style, GraphicsUnit unit) 4267FontStyle _style = FontStyle.Regular; 4286public KeyInfo(string familyName, float size, FontStyle style) 4298public KeyInfo(FontFamily family, float size, FontStyle style) 4311public KeyInfo(FontFamily family, float size, FontStyle style, GraphicsUnit unit)
System.Web.Entity.Design (1)
System\Data\WebControls\Design\Util\TaskFormBase.cs (1)
166_captionLabel.Font = new Font(Font.FontFamily, Font.Size + 2.0f, FontStyle.Bold, Font.Unit);
System.Web.Mobile (2)
UI\MobileControls\Design\Util\ImageCreator.cs (2)
72Font normalFont = new Font(_fontFamily, 8, FontStyle.Regular), 73boldFont = new Font(normalFont.FontFamily, 8, FontStyle.Bold)
System.Windows.Forms (53)
misc\GDI\WindowsFont.cs (19)
51private FontStyle style; 107this(faceName, defaultFontSize, FontStyle.Regular, IntNativeMethods.DEFAULT_CHARSET, WindowsFontQuality.Default) 118this(faceName, size, FontStyle.Regular, IntNativeMethods.DEFAULT_CHARSET, WindowsFontQuality.Default) 127public WindowsFont( string faceName, float size, FontStyle style ) : 138public WindowsFont( string faceName, float size, FontStyle style, byte charSet, WindowsFontQuality fontQuality ) 162this.logFont.lfWeight = (style & FontStyle.Bold) == FontStyle.Bold ? IntNativeMethods.FW_BOLD : IntNativeMethods.FW_NORMAL; 163this.logFont.lfItalic = (style & FontStyle.Italic) == FontStyle.Italic ? True : False; 164this.logFont.lfUnderline = (style & FontStyle.Underline) == FontStyle.Underline ? True : False; 165this.logFont.lfStrikeOut = (style & FontStyle.Strikeout) == FontStyle.Strikeout ? True : False; 192this.style = FontStyle.Regular; 195this.style |= FontStyle.Bold; 199this.style |= FontStyle.Italic; 203this.style |= FontStyle.Underline; 207this.style |= FontStyle.Strikeout; 443public FontStyle Style
winforms\Managed\System\WinForms\AxHost.cs (7)
4994FontStyle style = FontStyle.Regular; 4999style |= FontStyle.Bold; 5002style |= FontStyle.Italic; 5005style |= FontStyle.Underline; 5008style |= FontStyle.Strikeout; 5011style |= FontStyle.Bold;
winforms\Managed\System\WinForms\DataGrid.cs (1)
8501linkFont = new Font(Font, FontStyle.Underline);
winforms\Managed\System\WinForms\DataGridCaption.cs (1)
90this.dataGridFont = new Font(dataGrid.Font, FontStyle.Bold);
winforms\Managed\System\WinForms\DataGridParentRows.cs (2)
578textFont = new Font(font, FontStyle.Bold); 991textFont = new Font(font, FontStyle.Bold);
winforms\Managed\System\WinForms\LinkLabel.cs (1)
650Font alwaysUnderlined = new Font(Font, Font.Style | FontStyle.Underline);
winforms\Managed\System\WinForms\LinkUtilities.cs (9)
197FontStyle style = f.Style; 199style |= FontStyle.Underline; 202style &= ~FontStyle.Underline; 208FontStyle hoverStyle = f.Style; 210hoverStyle |= FontStyle.Underline; 213hoverStyle &= ~FontStyle.Underline; 218FontStyle linkStyle = f.Style; 220linkStyle |= FontStyle.Underline; 223linkStyle &= ~FontStyle.Underline;
winforms\Managed\System\WinForms\ListView.cs (2)
2515odCacheFont = new Font(odCacheFont, FontStyle.Bold); 2722subItemFont = new Font(item.SubItems[0].Font, FontStyle.Underline);
winforms\Managed\System\WinForms\PropertyGridInternal\DocComment.cs (1)
229m_labelTitle.Font = new Font(Font, FontStyle.Bold);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
1461fontBold = new Font(this.Font, FontStyle.Bold);
winforms\Managed\System\WinForms\RichTextBox.cs (6)
2299FontStyle style = FontStyle.Regular; 2301style |= FontStyle.Bold; 2303style |= FontStyle.Italic; 2305style |= FontStyle.Strikeout; 2307style |= FontStyle.Underline;
winforms\Managed\System\WinForms\TrustManagerMoreInformation.cs (2)
40lblMachineAccess.Font = lblPublisher.Font = lblInstallation.Font = lblLocation.Font = new Font(lblMachineAccess.Font, FontStyle.Bold); 439this.lblPublisher.Font = new Font(this.Font, FontStyle.Bold);
winforms\Managed\System\WinForms\TrustManagerPromptUI.cs (1)
845this.lblName.Font = new Font(this.Font, FontStyle.Bold);
System.Windows.Forms.DataVisualization (9)
Common\General\Chart.cs (9)
4165get { return this.GetFont(DefaultFamilyName, 8, FontStyle.Bold); } 4194public Font GetFont(string familyName, float size, FontStyle style) 4211public Font GetFont(FontFamily family, float size, FontStyle style) 4229public Font GetFont(FontFamily family, float size, FontStyle style, GraphicsUnit unit) 4267FontStyle _style = FontStyle.Regular; 4286public KeyInfo(string familyName, float size, FontStyle style) 4298public KeyInfo(FontFamily family, float size, FontStyle style) 4311public KeyInfo(FontFamily family, float size, FontStyle style, GraphicsUnit unit)
System.Workflow.Activities (1)
Designers\StateDesigner.Layouts.cs (1)
609using (Font font = new Font(designerTheme.Font, FontStyle.Underline | designerTheme.Font.Style))
System.Workflow.ComponentModel (6)
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (2)
821this.artifactLabel.Font = new Font(this.Font.Name, this.Font.SizeInPoints, FontStyle.Bold); 1218using (Font helpFontBold = new Font(this.Font.FontFamily, this.Font.SizeInPoints, FontStyle.Bold))
AuthoringOM\Design\SequentialWorkflowHeaderFooter.cs (3)
195using (Font font = new Font(e.DesignerTheme.Font.FontFamily, e.DesignerTheme.Font.SizeInPoints + 1.0f, FontStyle.Bold)) 212using (Font font = new Font(e.DesignerTheme.Font.FontFamily, e.DesignerTheme.Font.SizeInPoints + 1.0f, (this.AssociatedDesigner.SmartTagVisible) ? FontStyle.Bold : FontStyle.Regular))
AuthoringOM\Design\Themes.cs (1)
3097this.boldFont = new Font(this.fontName, FontSize, FontStyle.Bold);
System.WorkflowServices (1)
System\Workflow\Activities\Design\OperationPickerDialog.cs (1)
508this.Font = new Font(this.Font, FontStyle.Italic);