Back to Devexpress

TreeListOptionsPrint.UsePrintStyles Property

windowsforms-devexpress-dot-xtratreelist-dot-treelistoptionsprint.md

latest7.3 KB
Original Source

TreeListOptionsPrint.UsePrintStyles Property

Gets or sets whether the print appearances are used when the Tree List is printed and exported.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool UsePrintStyles { get; set; }
vb
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property UsePrintStyles As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true to use the print appearances; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to UsePrintStyles
TreeList

.OptionsPrint .UsePrintStyles

|

Remarks

If the UsePrintStyles option is set to true , the appearance settings used to paint the Tree List’s elements when it’s printed and exported are specified by the TreeList.AppearancePrint property. Otherwise, if the print appearances are not used, the settings provided by the TreeList.Appearance property are used.

The following code snippets (auto-collected from DevExpress Examples) contain references to the UsePrintStyles property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-spreadsheet-chart-api/CS/SpreadsheetChartAPISamples/Form1.cs#L147

csharp
#region InitializeTreeList
treeList.OptionsPrint.UsePrintStyles = true;
treeList.FocusedNodeChanged += new DevExpress.XtraTreeList.FocusedNodeChangedEventHandler(this.OnNewExampleSelected);

winforms-spreadsheet-pivot-table-api/CS/SpreadsheetPivotTableExamples/Form1.cs#L135

csharp
#region InitializeTreeList
treeList.OptionsPrint.UsePrintStyles = true;
treeList.FocusedNodeChanged += new DevExpress.XtraTreeList.FocusedNodeChangedEventHandler(this.OnNewExampleSelected);

winforms-spreadsheetcontrol-api-part-3/CS/SpreadsheetControl_API_Part03/Form1.cs#L310

csharp
#region InitializeTreeList
treeList.OptionsPrint.UsePrintStyles = true;
treeList.FocusedNodeChanged += new DevExpress.XtraTreeList.FocusedNodeChangedEventHandler(this.OnNewExampleSelected);

winforms-richeditcontrol-common-api/CS/RichEditAPISample/Form1.cs#L414

csharp
#region InitializeTreeList
treeList.OptionsPrint.UsePrintStyles = true;
treeList.FocusedNodeChanged += new DevExpress.XtraTreeList.FocusedNodeChangedEventHandler(this.OnNewExampleSelected);

winforms-richedit-document-api/CS/RichEditAPISample/Form1.cs#L404

csharp
#region InitializeTreeList
treeList.OptionsPrint.UsePrintStyles = true;
treeList.FocusedNodeChanged += new DevExpress.XtraTreeList.FocusedNodeChangedEventHandler(this.OnNewExampleSelected);

winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/Form1.vb#L142

vb
' #Region "InitializeTreeList"
treeList.OptionsPrint.UsePrintStyles = True
AddHandler treeList.FocusedNodeChanged, AddressOf OnNewExampleSelected

winforms-spreadsheet-pivot-table-api/VB/SpreadsheetPivotTableExamples/Form1.vb#L128

vb
' #Region "InitializeTreeList"
treeList.OptionsPrint.UsePrintStyles = True
AddHandler treeList.FocusedNodeChanged, AddressOf OnNewExampleSelected

winforms-spreadsheetcontrol-api-part-3/VB/SpreadsheetControl_API_Part03/Form1.vb#L313

vb
#Region "InitializeTreeList"
            treeList.OptionsPrint.UsePrintStyles = True
            AddHandler treeList.FocusedNodeChanged, New FocusedNodeChangedEventHandler(AddressOf OnNewExampleSelected)

winforms-richeditcontrol-common-api/VB/RichEditAPISample/Form1.vb#L406

vb
' #Region "InitializeTreeList"
treeList.OptionsPrint.UsePrintStyles = True
AddHandler treeList.FocusedNodeChanged, AddressOf OnNewExampleSelected

winforms-richedit-document-api/VB/RichEditAPISample/Form1.vb#L409

vb
#Region "InitializeTreeList"
            treeList.OptionsPrint.UsePrintStyles = True
            AddHandler treeList.FocusedNodeChanged, New FocusedNodeChangedEventHandler(AddressOf OnNewExampleSelected)

See Also

Appearance

AppearancePrint

Print Tree List

Export and Import Data

TreeListOptionsPrint Class

TreeListOptionsPrint Members

DevExpress.XtraTreeList Namespace