Class PdfBarcodeQuietZones
Inheritance
System.Object
PdfBarcodeQuietZones
Assembly: Syncfusion.Pdf.UWP.dll
Syntax
public sealed class PdfBarcodeQuietZones : Object
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Creates a new page and adds it as the last page of the document
PdfPage page = document.Pages.Add();
//Creates a new PdfCode93Barcode.
PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93");
//Creates a new PdfBarcodeQuietZones.
PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones();
quietZones.All = 0f;
//Set the barcode quiet zone.
code93.QuietZone = quietZones;
//Draw a barcode in the new Page.
code93.Draw(page, new PointF(25, 500));
//Save document to disk.
document.Save("code93.pdf");
' Create a new PDF document.
Dim document As PdfDocument = New PdfDocument()
'Creates a new page and adds it as the last page of the document
Dim page As PdfPage = document.Pages.Add()
'Creates a new PdfCode93Barcode.
Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93")
'Creates a new PdfBarcodeQuietZones.
PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones()
quietZones.All = 0f;
'Set the barcode quiet zone.
code93.QuietZone = quietZones
'Draw a barcode in the new Page.
code93.Draw(page, new PointF(25, 500))
'Save the document.
document.Save("code93.pdf")
Constructors
PdfBarcodeQuietZones()
Declaration
public PdfBarcodeQuietZones()
Properties
All
Declaration
public float All { get; set; }
Property Value
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Creates a new page and adds it as the last page of the document
PdfPage page = document.Pages.Add();
//Creates a new PdfCode93Barcode.
PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93");
//Creates a new PdfBarcodeQuietZones.
PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones();
quietZones.All = 0f;
//Set the barcode quiet zone.
code93.QuietZone = quietZones;
//Draw a barcode in the new Page.
code93.Draw(page, new PointF(25, 500));
//Save document to disk.
document.Save("code93.pdf");
' Create a new PDF document.
Dim document As PdfDocument = New PdfDocument()
'Creates a new page and adds it as the last page of the document
Dim page As PdfPage = document.Pages.Add()
'Creates a new PdfCode93Barcode.
Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93")
'Creates a new PdfBarcodeQuietZones.
PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones()
quietZones.All = 0f;
'Set the barcode quiet zone.
code93.QuietZone = quietZones
'Draw a barcode in the new Page.
code93.Draw(page, new PointF(25, 500))
'Save the document.
document.Save("code93.pdf")
Bottom
Declaration
public float Bottom { get; set; }
Property Value
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Creates a new page and adds it as the last page of the document
PdfPage page = document.Pages.Add();
//Creates a new PdfCode93Barcode.
PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93");
//Creates a new PdfBarcodeQuietZones.
PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones();
quietZones.Bottom = 0f;
//Set the barcode quiet zone.
code93.QuietZone = quietZones;
//Draw a barcode in the new Page.
code93.Draw(page, new PointF(25, 500));
//Save document to disk.
document.Save("code93.pdf");
' Create a new PDF document.
Dim document As PdfDocument = New PdfDocument()
'Creates a new page and adds it as the last page of the document
Dim page As PdfPage = document.Pages.Add()
'Creates a new PdfCode93Barcode.
Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93")
'Creates a new PdfBarcodeQuietZones.
PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones()
quietZones.Bottom = 0f;
'Set the barcode quiet zone.
code93.QuietZone = quietZones
'Draw a barcode in the new Page.
code93.Draw(page, new PointF(25, 500))
'Save the document.
document.Save("code93.pdf")
IsAll
Declaration
public bool IsAll { get; }
Property Value
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Creates a new page and adds it as the last page of the document
PdfPage page = document.Pages.Add();
//Creates a new PdfCode93Barcode.
PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93");
//Creates a new PdfBarcodeQuietZones.
PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones();
quietZones.All = 0f;
//Set the barcode quiet zone.
code93.QuietZone = quietZones;
bool isAll=code93.QuietZone.IsAll;
//Draw a barcode in the new Page.
code93.Draw(page, new PointF(25, 500));
//Save document to disk.
document.Save("code93.pdf");
' Create a new PDF document.
Dim document As PdfDocument = New PdfDocument()
'Creates a new page and adds it as the last page of the document
Dim page As PdfPage = document.Pages.Add()
'Creates a new PdfCode93Barcode.
Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93")
'Creates a new PdfBarcodeQuietZones.
PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones()
quietZones.All = 0f
code39.QuietZone=quietZones
Dim isAll As bool = code39.QuietZone.IsAll
'Set the barcode quiet zone.
code93.QuietZone = quietZones
'Draw a barcode in the new Page.
code93.Draw(page, new PointF(25, 500))
'Save the document.
document.Save("code93.pdf")
Left
Declaration
public float Left { get; set; }
Property Value
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Creates a new page and adds it as the last page of the document
PdfPage page = document.Pages.Add();
//Creates a new PdfCode93Barcode.
PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93");
//Creates a new PdfBarcodeQuietZones.
PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones();
quietZones.Left = 0f;
//Set the barcode quiet zone.
code93.QuietZone = quietZones;
//Draw a barcode in the new Page.
code93.Draw(page, new PointF(25, 500));
//Save document to disk.
document.Save("code93.pdf");
' Create a new PDF document.
Dim document As PdfDocument = New PdfDocument()
'Creates a new page and adds it as the last page of the document
Dim page As PdfPage = document.Pages.Add()
'Creates a new PdfCode93Barcode.
Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93")
'Creates a new PdfBarcodeQuietZones.
PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones()
quietZones.Left = 0f;
'Set the barcode quiet zone.
code93.QuietZone = quietZones
'Draw a barcode in the new Page.
code93.Draw(page, new PointF(25, 500))
'Save the document.
document.Save("code93.pdf")
Right
Declaration
public float Right { get; set; }
Property Value
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Creates a new page and adds it as the last page of the document
PdfPage page = document.Pages.Add();
//Creates a new PdfCode93Barcode.
PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93");
//Creates a new PdfBarcodeQuietZones.
PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones();
quietZones.Right = 0f;
//Set the barcode quiet zone.
code93.QuietZone = quietZones;
//Draw a barcode in the new Page.
code93.Draw(page, new PointF(25, 500));
//Save document to disk.
document.Save("code93.pdf");
' Create a new PDF document.
Dim document As PdfDocument = New PdfDocument()
'Creates a new page and adds it as the last page of the document
Dim page As PdfPage = document.Pages.Add()
'Creates a new PdfCode93Barcode.
Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93")
'Creates a new PdfBarcodeQuietZones.
PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones()
quietZones.Right = 0f;
'Set the barcode quiet zone.
code93.QuietZone = quietZones
'Draw a barcode in the new Page.
code93.Draw(page, new PointF(25, 500))
'Save the document.
document.Save("code93.pdf")
Top
Declaration
public float Top { get; set; }
Property Value
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Creates a new page and adds it as the last page of the document
PdfPage page = document.Pages.Add();
//Creates a new PdfCode93Barcode.
PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93");
//Creates a new PdfBarcodeQuietZones.
PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones();
quietZones.Top = 0f;
//Set the barcode quiet zone.
code93.QuietZone = quietZones;
//Draw a barcode in the new Page.
code93.Draw(page, new PointF(25, 500));
//Save document to disk.
document.Save("code93.pdf");
'Create a new PDF document.
Dim document As PdfDocument = New PdfDocument()
'Creates a new page and adds it as the last page of the document
Dim page As PdfPage = document.Pages.Add()
'Creates a new PdfCode93Barcode.
Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93")
'Creates a new PdfBarcodeQuietZones.
PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones()
quietZones.Top = 0f;
'Set the barcode quiet zone.
code93.QuietZone = quietZones
'Draw a barcode in the new Page.
code93.Draw(page, new PointF(25, 500))
'Save the document.
document.Save("code93.pdf")
Extension Methods