Class PrintFileTXT
It represents a plain text file in the server that will be printed at the client side.
Inherited Members
Namespace: Neodynamic.SDK.Web
Assembly: cs.temp.dll.dll
Syntax
public class PrintFileTXT : PrintFile
Constructors
PrintFileTXT(Byte[], String)
Creates an instance of the PrintFileTXT class with the specified binary content and name.
Declaration
public PrintFileTXT(byte[] binaryContent, string fileName)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | binaryContent | The binary content of the text file at the server side that will be printed at the client side. |
System.String | fileName | The file name that will be created at the client side. |
PrintFileTXT(Byte[], String, Int32)
Creates an instance of the PrintFileTXT class with the specified binary content, name and num of printing copies.
Declaration
public PrintFileTXT(byte[] binaryContent, string fileName, int copies)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | binaryContent | The binary content of the text file at the server side that will be printed at the client side. |
System.String | fileName | The file name that will be created at the client side. |
System.Int32 | copies | The num of copies for printing this file. |
PrintFileTXT(String, String)
Creates an instance of the PrintFileTXT class with the specified path and name.
Declaration
public PrintFileTXT(string filePath, string fileName)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | The path of the text file at the server side that will be printed at the client side. |
System.String | fileName | The file name that will be created at the client side. |
PrintFileTXT(String, String, Int32)
Creates an instance of the PrintFileTXT class with the specified path, name and num of printing copies.
Declaration
public PrintFileTXT(string filePath, string fileName, int copies)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | The path of the text file at the server side that will be printed at the client side. |
System.String | fileName | The file name that will be created at the client side. |
System.Int32 | copies | The num of copies for printing this file. |
Properties
FontBold
Gets or sets whether the text is bold. Default is False.
Declaration
public bool FontBold { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
FontItalic
Gets or sets whether the text has the italic style applied. Default is False.
Declaration
public bool FontItalic { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
FontName
Gets or sets the font name. Default is Arial.
Declaration
public string FontName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FontSizeInPoints
Gets or sets the font size in Points unit. Default is 10pt.
Declaration
public double FontSizeInPoints { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
FontStrikeThrough
Gets or sets whether the text is printed with a horizontal line through it. Default is False.
Declaration
public bool FontStrikeThrough { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
FontUnderline
Gets or sets whether the text is underlined. Default is False.
Declaration
public bool FontUnderline { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
MarginBottom
Gets or sets the bottom margin for the printed text. Value must be specified in Inch unit. Default is 0.5in
Declaration
public double MarginBottom { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
MarginLeft
Gets or sets the left margin for the printed text. Value must be specified in Inch unit. Default is 0.5in
Declaration
public double MarginLeft { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
MarginRight
Gets or sets the right margin for the printed text. Value must be specified in Inch unit. Default is 0.5in
Declaration
public double MarginRight { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
MarginTop
Gets or sets the top margin for the printed text. Value must be specified in Inch unit. Default is 0.5in
Declaration
public double MarginTop { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
PrintOrientation
Gets or sets the print orientation. Default is Portrait.
Declaration
public PrintOrientation PrintOrientation { get; set; }
Property Value
Type | Description |
---|---|
PrintOrientation |
TextAlignment
Gets or sets the alignment of the text content. Default is Left alignment.
Declaration
public TextAlignment TextAlignment { get; set; }
Property Value
Type | Description |
---|---|
TextAlignment |
TextColor
Gets or sets the Color for the printed text. Color must be specified in Hex notation for RGB channels respectively e.g. #rgb or #rrggbb. Default is #000000.
Declaration
public string TextColor { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TextContent
Gets or sets the Text content to be printed. Default is an empty string.
Declaration
public string TextContent { get; set; }
Property Value
Type | Description |
---|---|
System.String |