Class PrintCompositor
- Namespace
- GtkSource
- Assembly
- GtkSource-5.dll
public class PrintCompositor : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
- Inheritance
-
PrintCompositor
- Implements
-
- Inherited Members
-
Constructors
PrintCompositor(bool, params ConstructArgument[])
protected PrintCompositor(bool owned, params ConstructArgument[] constructArguments)
Parameters
owned
bool
constructArguments
ConstructArgument[]
PrintCompositor(IntPtr, bool)
protected PrintCompositor(IntPtr ptr, bool ownedRef)
Parameters
ptr
IntPtr
ownedRef
bool
Fields
BodyFontNamePropertyDefinition
public static readonly Property<string?, PrintCompositor> BodyFontNamePropertyDefinition
Field Value
- Property<string, PrintCompositor>
BufferPropertyDefinition
public static readonly Property<Buffer?, PrintCompositor> BufferPropertyDefinition
Field Value
- Property<Buffer, PrintCompositor>
public static readonly Property<string?, PrintCompositor> FooterFontNamePropertyDefinition
Field Value
- Property<string, PrintCompositor>
public static readonly Property<string?, PrintCompositor> HeaderFontNamePropertyDefinition
Field Value
- Property<string, PrintCompositor>
HighlightSyntaxPropertyDefinition
public static readonly Property<bool, PrintCompositor> HighlightSyntaxPropertyDefinition
Field Value
- Property<bool, PrintCompositor>
LineNumbersFontNamePropertyDefinition
public static readonly Property<string?, PrintCompositor> LineNumbersFontNamePropertyDefinition
Field Value
- Property<string, PrintCompositor>
NPagesPropertyDefinition
public static readonly Property<int, PrintCompositor> NPagesPropertyDefinition
Field Value
- Property<int, PrintCompositor>
public static readonly Property<bool, PrintCompositor> PrintFooterPropertyDefinition
Field Value
- Property<bool, PrintCompositor>
public static readonly Property<bool, PrintCompositor> PrintHeaderPropertyDefinition
Field Value
- Property<bool, PrintCompositor>
PrintLineNumbersPropertyDefinition
public static readonly Property<uint, PrintCompositor> PrintLineNumbersPropertyDefinition
Field Value
- Property<uint, PrintCompositor>
TabWidthPropertyDefinition
public static readonly Property<uint, PrintCompositor> TabWidthPropertyDefinition
Field Value
- Property<uint, PrintCompositor>
WrapModePropertyDefinition
public static readonly Property<WrapMode, PrintCompositor> WrapModePropertyDefinition
Field Value
- Property<WrapMode, PrintCompositor>
Properties
BodyFontName
public string? BodyFontName { get; set; }
Property Value
- string
Buffer
public Buffer? Buffer { get; }
Property Value
- Buffer
public string? FooterFontName { get; set; }
Property Value
- string
public string? HeaderFontName { get; set; }
Property Value
- string
HighlightSyntax
public bool HighlightSyntax { get; set; }
Property Value
- bool
LineNumbersFontName
public string? LineNumbersFontName { get; set; }
Property Value
- string
NPages
public int NPages { get; }
Property Value
- int
public bool PrintFooter { get; set; }
Property Value
- bool
public bool PrintHeader { get; set; }
Property Value
- bool
PrintLineNumbers
public uint PrintLineNumbers { get; set; }
Property Value
- uint
TabWidth
public uint TabWidth { get; set; }
Property Value
- uint
WrapMode
public WrapMode WrapMode { get; set; }
Property Value
- WrapMode
Methods
DrawPage(PrintContext, int)
public void DrawPage(PrintContext context, int pageNr)
Parameters
context
PrintContext
pageNr
int
GetBodyFontName()
public string GetBodyFontName()
Returns
- string
GetBottomMargin(Unit)
public double GetBottomMargin(Unit unit)
Parameters
unit
Unit
Returns
- double
GetBuffer()
public Buffer GetBuffer()
Returns
- Buffer
public string GetFooterFontName()
Returns
- string
GetGType()
public static Type GetGType()
Returns
- Type
public string GetHeaderFontName()
Returns
- string
GetHighlightSyntax()
public bool GetHighlightSyntax()
Returns
- bool
GetLeftMargin(Unit)
public double GetLeftMargin(Unit unit)
Parameters
unit
Unit
Returns
- double
GetLineNumbersFontName()
public string GetLineNumbersFontName()
Returns
- string
GetNPages()
Returns
- int
public double GetPaginationProgress()
Returns
- double
public bool GetPrintFooter()
Returns
- bool
public bool GetPrintHeader()
Returns
- bool
GetPrintLineNumbers()
public uint GetPrintLineNumbers()
Returns
- uint
GetRightMargin(Unit)
public double GetRightMargin(Unit unit)
Parameters
unit
Unit
Returns
- double
GetTabWidth()
public uint GetTabWidth()
Returns
- uint
GetTopMargin(Unit)
public double GetTopMargin(Unit unit)
Parameters
unit
Unit
Returns
- double
GetWrapMode()
public WrapMode GetWrapMode()
Returns
- WrapMode
IgnoreTag(TextTag)
[Version("5.2")]
public void IgnoreTag(TextTag tag)
Parameters
tag
TextTag
New(Buffer)
public static PrintCompositor New(Buffer buffer)
Parameters
buffer
Buffer
Returns
- PrintCompositor
NewFromView(View)
public static PrintCompositor NewFromView(View view)
Parameters
view
View
Returns
- PrintCompositor
Paginate(PrintContext)
public bool Paginate(PrintContext context)
Parameters
context
PrintContext
Returns
- bool
SetBodyFontName(string)
public void SetBodyFontName(string fontName)
Parameters
fontName
string
SetBottomMargin(double, Unit)
public void SetBottomMargin(double margin, Unit unit)
Parameters
margin
double
unit
Unit
public void SetFooterFontName(string? fontName)
Parameters
fontName
string
public void SetFooterFormat(bool separator, string? left, string? center, string? right)
Parameters
separator
bool
left
string
center
string
right
string
public void SetHeaderFontName(string? fontName)
Parameters
fontName
string
public void SetHeaderFormat(bool separator, string? left, string? center, string? right)
Parameters
separator
bool
left
string
center
string
right
string
SetHighlightSyntax(bool)
public void SetHighlightSyntax(bool highlight)
Parameters
highlight
bool
SetLeftMargin(double, Unit)
public void SetLeftMargin(double margin, Unit unit)
Parameters
margin
double
unit
Unit
SetLineNumbersFontName(string?)
public void SetLineNumbersFontName(string? fontName)
Parameters
fontName
string
public void SetPrintFooter(bool print)
Parameters
print
bool
public void SetPrintHeader(bool print)
Parameters
print
bool
SetPrintLineNumbers(uint)
public void SetPrintLineNumbers(uint interval)
Parameters
interval
uint
SetRightMargin(double, Unit)
public void SetRightMargin(double margin, Unit unit)
Parameters
margin
double
unit
Unit
SetTabWidth(uint)
public void SetTabWidth(uint width)
Parameters
width
uint
SetTopMargin(double, Unit)
public void SetTopMargin(double margin, Unit unit)
Parameters
margin
double
unit
Unit
SetWrapMode(WrapMode)
public void SetWrapMode(WrapMode wrapMode)
Parameters
wrapMode
WrapMode