ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

PrintInfo.ShowOptionsDialog Property

Gets or sets a value indicating whether the Options dialog is displayed.

[Visual Basic]

Public Property ShowOptionsDialog As Boolean

[C#]

public bool ShowOptionsDialog {get;set;}

[Delphi]

public property ShowOptionsDialog: Boolean read get_ShowOptionsDialog write set_ShowOptionsDialog;

Example

The following example displays the Options dialog box:

·      Visual Basic

       ' Show Options dialog box.

       Me.C1TrueDBGrid1.PrintInfo.ShowOptionsDialog = True

       ' Invoke print preview.

       Me.C1TrueDBGrid1.PrintInfo.PrintPreview()

·      C#

       // Show Options dialog box.

       this.c1TrueDBGrid1.PrintInfo.ShowOptionsDialog = true;

       // Invoke print preview.

       this.c1TrueDBGrid1.PrintInfo.PrintPreview();

·      Delphi

       // Show Options dialog box.

       Self.C1TrueDBGrid1.PrintInfo.ShowOptionsDialog := True;

       // Invoke print preview.

       Self.C1TrueDBGrid1.PrintInfo.PrintPreview;

See Also

PrintInfo Class | PrintInfo Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.