Vcl.Graphics.TPicture.UnregisterGraphicClass

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class procedure UnregisterGraphicClass(AClass: TGraphicClass);

C++

__classmethod void __fastcall UnregisterGraphicClass(TGraphicClass AClass);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TPicture

Description

Removes all references to the specified TGraphic class and all its descendants from the internal lists of file formats and clipboard formats.

Call UnregisterGraphicClass to make a graphic class unavailable to all picture objects. UnregisterGraphicClass reverses the registration accomplished by the RegisterFileFormat, or RegisterFileFormatRes, or RegisterClipboardFormat method. When a graphic class is registered, the global GraphicFilter, GraphicExtension, and GraphicFileMask functions can return dialog filter strings, default file extensions or file filters for the graphic class. Call UnregisterGraphicClass when these values should not be available. For example, component writers who implement custom graphic classes unregister those classes according to the language used. In Delphi, the classes are unregistered in the finalization block of the unit that implements them and, in C++, the classes are unregistered using the #pragma exit directive (C++).

File formats and clipboard formats for the custom class are registered in the initialization block (Delphi) or using #pragma startup (C++).

See Also