Esempio n. 1
0
 public void Dispose()
 {
     if (nativeFontFamily != IntPtr.Zero)
     {
         Status status = GDIPlus.GdipDeleteFontFamily(nativeFontFamily);
         nativeFontFamily = IntPtr.Zero;
         GC.SuppressFinalize(this);
         // check the status code (throw) at the last step
         GDIPlus.CheckStatus(status);
     }
 }