TCnPrintPreviewDialog Class
Represents a dialog box form that contains a PrintPreviewControl for printing from a Windows Forms application.
CNClrLib.Control.Base.TClrBaseComponent
CNClrLib.Component.PrintPreviewDialog.TCnPrintPreviewDialog
type TCnPrintPreviewDialog = class(TClrBaseComponent) end;
The TCnPrintPreviewDialog type exposes the following members.
Name | Description | |
---|---|---|
Create(TComponent) | Creates and initializes a TCnPrintPreviewDialog instance. (Overrides TClrBaseComponent.Create(TComponent).) | |
Destroy | Frees the resources allocated with a TCnPrintPreviewDialog instance. (Overrides TClrBaseComponent.Destroy.) |
Name | Description | |
---|---|---|
AllowTransparency | Gets or sets a value indicating whether the opacity of the form can be adjusted. | |
AutoScaleDimensions | Gets or sets the dimensions that the control was designed to. | |
AutoScaleMode | Gets or sets the automatic scaling mode of the control. | |
AutoSizeMode | Gets or sets the mode by which the form automatically resizes itself. | |
DefaultClrObject | Get the common language runtime object interface for this component. (Inherited from TClrBaseComponent.) | |
DesktopBounds | Gets or sets the size and location of the form on the Windows desktop. | |
DesktopLocation | Gets or sets the location of the form on the Windows desktop. | |
DialogResult | Gets or sets the dialog result for the form. | |
Document | Gets or sets the document to preview. | |
HorizontalScroll | Gets the characteristics associated with the horizontal scroll bar. | |
IsRestrictedWindow | Gets a value indicating whether the form can use all windows and user input events without restriction. | |
Modal | Gets a value indicating whether this form is displayed modally. | |
Opacity | Gets or sets the opacity level of the form. | |
PrintPreviewControl | Gets a value indicating the PrintPreviewControl contained in this form. | |
RestoreBounds | Gets the location and size of the form in its normal window state. | |
ShowIcon | Gets or sets a value indicating whether an icon is displayed in the caption bar of the form. | |
ShowInTaskbar | Gets or sets a value indicating whether the form is displayed in the Windows taskb | |
TopLevel | Gets or sets a value indicating whether to display the form as a top-level window. | |
UseAntiAlias | Gets or sets a value indicating whether printing uses the anti-aliasing features of the operating system. | |
VerticalScroll | Gets the characteristics associated with the vertical scroll bar. |
Name | Description | |
---|---|---|
Activate | Activates the form and gives it focus. | |
Close | Closes the form. | |
Dispose | Releases the resources used by the Component. (Inherited from TClrBaseComponent.) | |
DoGetDefaultClrObject | Represents method | |
DoGetDotNetBaseComponent | Represents method | |
GetClrObject | Represents method | |
Notification(TComponent,TOperation) | Represents method | |
PerformAutoScale | Performs scaling of the container control and its children. | |
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.) | |
SetAutoScaleDimensions(Single,Single) | Sets the size of the auto-scroll margins. | |
SetAutoScrollMargin(Integer,Integer) | Sets the size of the auto-scroll margins. | |
SetDesktopBounds(Integer,Integer,Integer,Integer) | Sets the bounds of the form in desktop coordinates. | |
SetDesktopLocation(Integer,Integer) | Sets the location of the form in desktop coordinates. | |
ShowDialog | Overloaded. Shows the form as a modal dialog box. | |
ShowDialog(TWinControl) | Overloaded. Shows the form as a modal 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.) | |
Validate | Overloaded. Invalidates the entire surface of the control and causes the control to be redrawn. | |
Validate(Boolean) | Overloaded. Invalidates a specific region of the control and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control. | |
ValidateChildren | Overloaded. Causes all of the child controls within a control that support validation to validate their data. | |
ValidateChildren(TValidationConstraints_Set) | Overloaded. Causes all of the child controls within a control that support validation to validate their data. |
Name | Description | |
---|---|---|
OnActivated | Occurs when the form is activated in code or by the user. | |
OnDeactivate | Occurs when the form loses focus and is no longer the active form. | |
OnFormClosed | Occurs when the form is closed. | |
OnFormClosing | Occurs when the form is closing. | |
OnHelpButtonClicked | Occurs when the Help button is clicked. | |
OnInputLanguageChanged | Occurs after the input language of the form has changed. | |
OnInputLanguageChanging | Occurs when the user attempts to change the input language for the form. | |
OnLoad | Occurs before a form is displayed for the first time. | |
OnResizeBegin | Occurs when a form enters resizing mode. | |
OnResizeEnd | Occurs when a form exits resizing mode. | |
OnScroll | Occurs when the user or code scrolls through the client area. | |
OnShown | Occurs whenever the form is first displayed. |
See C:\Users\Public\Documents\CrystalNet Technologies\.Net VCL for Delphi Demo Folder after installation for examples of how to use this component.