/// <summary> /// Remove a given module from a library instance. /// </summary> /// <remarks> /// The module object is destroyed by the function in case of success. /// </remarks> /// <param name="module">A handle to a module object.</param> public void RemoveModule(Module module) { if (module == null) { throw new ArgumentNullException("module"); } Error err = FT.FT_Remove_Module(Reference, module.Reference); if (err != Error.Ok) { throw new FreeTypeException(err); } }
/// <summary> /// Remove a given module from a library instance. /// </summary> /// <remarks> /// The module object is destroyed by the function in case of success. /// </remarks> /// <param name="module">A handle to a module object.</param> public void RemoveModule(Module module) { if (disposed) { throw new ObjectDisposedException("Library", "Cannot access a disposed object."); } if (module == null) { throw new ArgumentNullException("module"); } Error err = FT.FT_Remove_Module(Reference, module.Reference); if (err != Error.Ok) { throw new FreeTypeException(err); } }