System.Windows.Forms.PrintPreviewDialog.UseAntiAlias Property

Gets or sets a value indicating whether printing uses the anti-aliasing features of the operating system.

Syntax

[System.ComponentModel.DefaultValue(false)]
public bool UseAntiAlias { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Anti-aliasing removes jagged lines when fonts are rendered.

The following code example demonstrates the System.Windows.Forms.PrintPreviewDialog setting the PrintPreviewDialog.Document and PrintPreviewDialog.UseAntiAlias properties. The example assumes the form contains a System.Windows.Forms.TreeView named TreeView1 that contains System.Windows.Forms.TreeNode objects. The Control.Tag property of each System.Windows.Forms.TreeNode object must be set to a fully qualified document name that can be accessed by the machine running the example. Set each TreeNode.Text property to a string that identifies the file specified by the TreeNode.Tag property. For example, you could set TreeNode1.Tag to "c:\myDocuments\recipe.doc" and TreeNode1.Text to "recipe.doc". The example also assumes the form contains a System.Windows.Forms.PrintPreviewDialog named PrintPreviewDialog1 and a button named Button1. To run this example, call the InitializePrintPreviewDialog method in the form's constructor or Form.Load event handler.

code reference: System.Windows.Forms.TreeViewAndPrintPreview#3

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0