Gets a list of all the current barcode write options.
public [Leadtools.Barcode.BarcodeWriteOptions[]](barcodewriteoptions.html) GetAllDefaultOptions() Public Function GetAllDefaultOptions() As Leadtools.Barcode.BarcodeWriteOptions() public [Leadtools.Barcode.BarcodeWriteOptions[]](barcodewriteoptions.html) GetAllDefaultOptions() @property (nonatomic, strong, readonly) NSArray<__kindof LTBarcodeWriteOptions *> *allDefaultOptions public BarcodeWriteOptions[] getAllDefaultOptions() function Leadtools.Barcode.BarcodeWriter.GetAllDefaultOptions() public:Leadtools.Barcode.array<BarcodeWriteOptions^>^ GetAllDefaultOptions();
An array of BarcodeWriteOptions derived types that contain all the default write options currently set in this BarcodeWriter.
The BarcodeWriter object contains an array of all the default write options used by the WriteBarcode method when no explicit options are passed by the user.
Refer to the BarcodeWriteOptions class for a list of the symbologies and the type of the derived BarcodeWriteOptions used by LEADTOOLS.
To get the options for a specific symbology, refer to GetDefaultOptions
using Leadtools;using Leadtools.Codecs;using Leadtools.Forms;using Leadtools.Barcode;using Leadtools.ImageProcessing;public void BarcodeWriter_GetAllDefaultOptionsExample(){BarcodeEngine engine = new BarcodeEngine();BarcodeWriter writer = engine.Writer;// Show information on all the default write option classesBarcodeWriteOptions[] writeOptionsArray = writer.GetAllDefaultOptions();Console.WriteLine("Write options:");foreach (BarcodeWriteOptions writeOptions in writeOptionsArray){Console.WriteLine(" {0} ({1}) supports options for the following symbologies:", writeOptions.GetType().Name, writeOptions.FriendlyName);Console.WriteLine(" ");BarcodeSymbology[] symbologies = writeOptions.GetSupportedSymbologies();for (int i = 0; i < symbologies.Length; i++){Console.Write(symbologies[i]);if (i != (symbologies.Length - 1)){Console.Write(", ");}else{Console.WriteLine();}}}}
Imports LeadtoolsImports Leadtools.CodecsImports Leadtools.FormsImports Leadtools.BarcodeImports Leadtools.ImageProcessingPublic Sub BarcodeWriter_GetAllDefaultOptionsExample()Dim engine As New BarcodeEngine()Dim writer As BarcodeWriter = engine.Writer' Show information on all the default write option classesDim writeOptionsArray() As BarcodeWriteOptions = writer.GetAllDefaultOptions()Console.WriteLine("Write options:")For Each writeOptions As BarcodeWriteOptions In writeOptionsArrayConsole.WriteLine(" {0} ({1}) supports options for the following symbologies:", writeOptions.GetType().Name, writeOptions.FriendlyName)Console.WriteLine(" ")Dim symbologies() As BarcodeSymbology = writeOptions.GetSupportedSymbologies()For i As Integer = 0 To symbologies.Length - 1Console.Write(symbologies(i))If i <> (symbologies.Length - 1) ThenConsole.Write(", ")ElseConsole.WriteLine()End IfNextNextEnd Sub
using Leadtools;using Leadtools.Codecs;using Leadtools.Forms;using Leadtools.Barcode;using Leadtools.ImageProcessing;using Leadtools.Examples;public void BarcodeWriter_GetAllDefaultOptionsExample(){BarcodeEngine engine = new BarcodeEngine();BarcodeWriter writer = engine.Writer;// Show information on all the default write option classesBarcodeWriteOptions[] writeOptionsArray = writer.GetAllDefaultOptions();Console.WriteLine("Write options:");foreach (BarcodeWriteOptions writeOptions in writeOptionsArray){Console.WriteLine(" {0} ({1}) supports options for the following symbologies:", writeOptions.GetType().Name, writeOptions.FriendlyName);Console.WriteLine(" ");BarcodeSymbology[] symbologies = writeOptions.GetSupportedSymbologies();for (int i = 0; i < symbologies.Length; i++){Console.Write(symbologies[i]);if (i != (symbologies.Length - 1)){Console.Write(", ");}else{Console.WriteLine();}}}}
Imports LeadtoolsImports Leadtools.CodecsImports Leadtools.FormsImports Leadtools.BarcodeImports Leadtools.ImageProcessingPublic Sub BarcodeWriter_GetAllDefaultOptionsExample()Dim engine As BarcodeEngine = New BarcodeEngine()Dim writer As BarcodeWriter = engine.Writer' Show information on all the default write option classesDim writeOptionsArray As BarcodeWriteOptions() = writer.GetAllDefaultOptions()Console.WriteLine("Write options:")For Each writeOptions As BarcodeWriteOptions In writeOptionsArrayConsole.WriteLine(" {0} ({1}) supports options for the following symbologies:", writeOptions.GetType().Name, writeOptions.FriendlyName)Console.WriteLine(" ")Dim symbologies As BarcodeSymbology() = writeOptions.GetSupportedSymbologies()Dim i As Integer = 0Do While i < symbologies.LengthConsole.Write(symbologies(i))If i <> (symbologies.Length - 1) ThenConsole.Write(", ")ElseConsole.WriteLine()End Ifi += 1LoopNext writeOptionsEnd Sub
|
Products |
Support |
Feedback: GetAllDefaultOptions Method (BarcodeWriter) - Leadtools.Barcode |
Introduction |
Help Version 19.0.2017.6.21
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.