3 instantiations of WindowsFont
System.Windows.Forms (3)
misc\GDI\WindowsFont.cs (3)
244
return new
WindowsFont
(familyName, font.SizeInPoints, font.Style, font.GdiCharSet, fontQuality);
284
WindowsFont wf = new
WindowsFont
( lf, /*createHandle*/ false );
380
return new
WindowsFont
( this.logFont, true );
49 references to WindowsFont
System.Windows.Forms (49)
misc\GDI\DeviceContext.cs (2)
533
selectedFont = g.font.Target as
WindowsFont
;
536
WindowsFont
previousFont = selectedFont;
misc\GDI\DeviceContext2.cs (8)
45
WindowsFont
selectedFont;
53
public
WindowsFont
ActiveFont {
180
public
WindowsFont
Font
189
WindowsFont
font = MeasurementDCInfo.LastUsedFont;
209
return
WindowsFont
.FromHdc( this.Hdc );
255
public IntPtr SelectFont(
WindowsFont
font )
269
WindowsFont
previousFont = selectedFont;
343
public bool IsFontOnContextStack(
WindowsFont
wf)
misc\GDI\DeviceContexts.cs (1)
78
internal static bool IsFontInUse(
WindowsFont
wf) {
misc\GDI\MeasurementDCInfo.cs (4)
43
internal static
WindowsFont
LastUsedFont
63
internal static IntNativeMethods.DRAWTEXTPARAMS GetTextMargins(WindowsGraphics wg,
WindowsFont
font) {
110
public
WindowsFont
LastUsedFont;
114
internal void UpdateFont(
WindowsFont
font)
misc\GDI\WindowsFont.cs (8)
222
public static
WindowsFont
FromFont(Font font)
228
public static
WindowsFont
FromFont(Font font, WindowsFontQuality fontQuality)
253
public static
WindowsFont
FromHdc( IntPtr hdc )
268
public static
WindowsFont
FromHfont( IntPtr hFont )
279
public static
WindowsFont
FromHfont( IntPtr hFont, bool takeOwnership )
284
WindowsFont
wf = new WindowsFont( lf, /*createHandle*/ false );
339
WindowsFont
winFont = font as
WindowsFont
;
misc\GDI\WindowsGraphics2.cs (15)
138
public void DrawText(string text,
WindowsFont
font, Point pt, Color foreColor)
147
public void DrawText(string text,
WindowsFont
font, Point pt, Color foreColor, Color backColor)
156
public void DrawText(string text,
WindowsFont
font, Point pt, Color foreColor, IntTextFormatFlags flags)
165
public void DrawText(string text,
WindowsFont
font, Point pt, Color foreColor, Color backColor, IntTextFormatFlags flags)
174
public void DrawText(string text,
WindowsFont
font, Rectangle bounds, Color foreColor)
182
public void DrawText(string text,
WindowsFont
font, Rectangle bounds, Color foreColor, Color backColor)
190
public void DrawText(string text,
WindowsFont
font, Rectangle bounds, Color color, IntTextFormatFlags flags)
201
public void DrawText(string text,
WindowsFont
font, Rectangle bounds, Color foreColor, Color backColor, IntTextFormatFlags flags)
308
public float GetOverhangPadding(
WindowsFont
font )
313
WindowsFont
tmpfont = font;
333
public IntNativeMethods.DRAWTEXTPARAMS GetTextMargins(
WindowsFont
font)
376
public Size GetTextExtent(string text,
WindowsFont
font)
407
public Size MeasureText(string text,
WindowsFont
font)
417
public Size MeasureText(string text,
WindowsFont
font, Size proposedSize)
440
public Size MeasureText(string text,
WindowsFont
font, Size proposedSize, IntTextFormatFlags flags)
misc\GDI\WindowsGraphicsCacheManager.cs (11)
53
private static List<KeyValuePair<Font,
WindowsFont
>> windowsFontCache;
79
private static List<KeyValuePair<Font,
WindowsFont
>> WindowsFontCache
86
windowsFontCache = new List<KeyValuePair<Font,
WindowsFont
>>(CacheSize);
134
public static
WindowsFont
GetWindowsFont(Font font)
142
public static
WindowsFont
GetWindowsFont(Font font, WindowsFontQuality fontQuality)
164
WindowsFont
wf = WindowsFontCache[index].Value;
182
WindowsFont
winFont =
WindowsFont
.FromFont(font, fontQuality);
183
KeyValuePair<Font,
WindowsFont
> newEntry = new KeyValuePair<Font,
WindowsFont
>(font, winFont);
194
WindowsFont
wfont = null;