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