TCnFontDialog Class
Prompts the user to choose a font from among those installed on the local computer.
type TCnFontDialog = class(TClrBaseComponent) end;
The TCnFontDialog type exposes the following members.
Name | Description | |
---|---|---|
![]() | Create(TComponent) | Creates and initializes a TCnFontDialog instance. (Overrides TClrBaseComponent.Create(TComponent).) |
![]() | Destroy | Frees the resources allocated with a TCnFontDialog instance. (Overrides TClrBaseComponent.Destroy.) |
Name | Description | |
---|---|---|
![]() | AllowScriptChange | Gets or sets a value indicating whether the user can change the character set specified in the Script combo box to display a character set other than the one currently displayed. |
![]() | AllowSimulations | Gets or sets a value indicating whether the dialog box allows graphics device interface (GDI) font simulations. |
![]() | AllowVectorFonts | Gets or sets a value indicating whether the dialog box allows vector font selections. |
![]() | AllowVerticalFonts | Gets or sets a value indicating whether the dialog box displays both vertical and horizontal fonts or only horizontal fonts. |
![]() | Color | Gets or sets the selected font color. |
![]() | DefaultClrObject | Get the common language runtime object interface for this component. (Inherited from TClrBaseComponent.) |
![]() | FixedPitchOnly | Gets or sets a value indicating whether the dialog box allows only the selection of fixed-pitch fonts. |
![]() | Font | Gets or sets the selected font. |
![]() | FontMustExist | Gets or sets a value indicating whether the dialog box specifies an error condition if the user attempts to select a font or style that does not exist. |
![]() | MaxSize | Gets or sets the maximum point size a user can select. |
![]() | MinSize | Gets or sets the minimum point size a user can select. |
![]() | ScriptsOnly | Gets or sets a value indicating whether the dialog box allows selection of fonts for all non-OEM and Symbol character sets, as well as the ANSI character set. |
![]() | ShowApply | Gets or sets a value indicating whether the dialog box contains an Apply button. |
![]() | ShowColor | Gets or sets a value indicating whether the dialog box displays the color choice. |
![]() | ShowEffects | Gets or sets a value indicating whether the dialog box contains controls that allow the user to specify strikethrough, underline, and text color options. |
![]() | ShowHelp | Gets or sets a value indicating whether the dialog box contains controls that allow the user to specify strikethrough, underline, and text color options. |
Name | Description | |
---|---|---|
![]() | Dispose | Releases the resources used by the Component. (Inherited from TClrBaseComponent.) |
![]() | DoColorChanged(TObject) | Represents method |
![]() | DoFontChanged(TObject) | Represents method |
![]() | DoGetDefaultClrObject | Represents method |
![]() | DoGetDotNetBaseComponent | Represents method |
![]() | GetClrObject | Represents method |
![]() | RegisterEventCallBack(ClrWString,Pointer) | Add an event to the instance using the specified event name and function pointer which is the event handler. The RegisterEventCallBack method does not directly add the event handler to the event. A hooking mechanism is used such that if the event is fired, the hook event is also fired which in turn calls the function pointer. (Inherited from TClrBaseComponent.) |
![]() | RegisterEventSource | Register the Delphi object which will raise the .Net event handler. (Inherited from TClrBaseComponent.) |
![]() | Reset | Resets all dialog box options to their default values. |
![]() | ShowDialog | Overloaded. Runs a common dialog box with a default owner. |
![]() | ShowDialog(TWinControl) | Overloaded. Runs a common dialog box with the specified owner. |
![]() | UnRegisterEventCallBack(ClrWString,Pointer) | Remove an event from the instance using the specified event name and function pointer which is the event handler. (Inherited from TClrBaseComponent.) |
![]() | UnRegisterEventSource | Unregister the Delphi object which raised the .Net event handler. (Inherited from TClrBaseComponent.) |
Name | Description | |
---|---|---|
![]() | OnApply | Occurs when the user clicks the Apply button in the font dialog box. |
![]() | OnHelpRequest | Occurs when the user clicks the Help button on a common dialog box. |
See C:\Users\Public\Documents\CrystalNet Technologies\.Net VCL for Delphi Demo Folder after installation for examples of how to use this component.