Represents the default implementation of an object that supports printing the contents of a Syntax
- Inheritance:
- object object
- Implements:
-
IPrint
Settings
Constructors
PrintSettings()
Initializes a new instance of the PrintSettings
class.
Properties
AreCollapsedOutliningNodesAllowed
Gets or sets whether collapsed outlining nodes are allowed.
Property Value
- bool:
true
if collapsed outlining nodes are allowed; otherwise,false
. The default value isfalse
.
Remarks
When false
, all collapsed outlining nodes will be expanded within the printout.
AreColumnGuidesVisible
Gets or sets whether column guides are visible.
Property Value
- bool:
true
if column guides are visible; otherwise,false
. The default value isfalse
.
AreIndentationGuidesVisible
Gets or sets whether indentation guides are visible.
Property Value
- bool:
true
if indentation guides are visible; otherwise,false
. The default value isfalse
.
AreSquiggleLinesVisible
Gets or sets whether squiggle lines are visible.
Property Value
- bool:
true
if squiggle lines are visible; otherwise,false
. The default value isfalse
.
DocumentTitle
Gets or sets the document title that should appear at the top of every page.
Property Value
- string:
The document title that should appear at the top of every page.
Remarks
This is often set to the filename of the document.
HighlightingStyleRegistry
Gets or sets the IHighlighting
Property Value
- IHighlighting
Style :Registry The IHighlighting
Style to use for printouts, if different than the active registry in the editor.Registry
Remarks
If this property is null
, the active registry in the editor will be used.
This property should generally be set when the editor is using a dark theme, since printouts require a light theme.
IsDocumentTitleMarginVisible
Gets or sets whether the document title margin is visible.
Property Value
- bool:
true
if the document title margin is visible; otherwise,false
. The default value istrue
.
IsLineNumberMarginVisible
Gets or sets whether the line number margin is visible.
Property Value
- bool:
true
if the line number margin is visible; otherwise,false
. The default value isfalse
.
IsPageNumberMarginVisible
Gets or sets whether the page number margin is visible.
Property Value
- bool:
true
if the page number margin is visible; otherwise,false
. The default value istrue
.
IsSyntaxHighlightingEnabled
Gets or sets whether syntax highlighting is enabled.
Property Value
- bool:
true
if syntax highlighting is enabled; otherwise,false
. The default value istrue
.
IsWhitespaceVisible
Gets or sets whether whitespace (spaces and tabs) is visible.
Property Value
- bool:
true
if whitespace (spaces and tabs) is visible; otherwise,false
. The default value isfalse
.
IsWordWrapGlyphMarginVisible
Gets or sets whether the word wrap glyph margin is visible.
Property Value
- bool:
true
if the word wrap glyph margin is visible; otherwise,false
. The default value istrue
.
PageMargin
Gets or sets the Thickness of the page margin.
Property Value
Remarks
The default value is 96 * 0.75
, where 1 inch = 96px in default resolution.
This means the default margin is 0.75in
.
PageSize
Gets or sets the System.Windows.Size of each page.
Property Value
- Size:
The System.Windows.Size of each page.
Remarks
A standard 8.5" x 11"
page would have values 96 * 8.5, 96 * 11
,
where 1 inch = 96px in default resolution.
ViewMarginFactories
Gets the collection that contains the IPrinter
Property Value
- IPrinter
View :Margin Factory Collection A IPrinter
View that contains the factories. The default collection contains a DefaultMargin Factory Collection Printer .View Margin Factory
Methods
CreateFixedDocument(SyntaxEditor)
Creates a Fixed
Parameter | Type | Description |
---|---|---|
syntaxEditor | Syntax |
The Syntax |
Returns
- Fixed
Document : The Fixed
Document that was created.
CreateFixedDocument(SyntaxEditor, IPrinterViewOptions)
Creates a Fixed
Parameter | Type | Description |
---|---|---|
syntaxEditor | Syntax |
The Syntax |
options | IPrinter |
An IPrinter |
Returns
- Fixed
Document : The Fixed
Document that was created.