Gets a list of all the current barcode read options.
public BarcodeReadOptions[] GetAllDefaultOptions() Public Function GetAllDefaultOptions() As Leadtools.Barcode.BarcodeReadOptions() public [Leadtools.Barcode.BarcodeReadOptions[]](barcodereadoptions.md) GetAllDefaultOptions() public BarcodeReadOptions[] getAllDefaultOptions() function Leadtools.Barcode.BarcodeReader.GetAllDefaultOptions() public:Leadtools.Barcode.array<BarcodeReadOptions^>^ GetAllDefaultOptions();
An array of BarcodeReadOptions derived types that contain all the default read options currently set in this BarcodeReader.
The BarcodeReader object contains an array of all the default read options used by the ReadBarcode and ReadBarcodes methods when no explicit options are passed by the user.
Refer to the BarcodeReadOptions class for a list of the symbologies and the type of the derived BarcodeReadOptions 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 BarcodeReader_GetAllDefaultOptionsExample(){BarcodeEngine engine = new BarcodeEngine();BarcodeReader reader = engine.Reader;// Show information on all the default read option classesBarcodeReadOptions[] readOptionsArray = reader.GetAllDefaultOptions();Console.WriteLine("Read options:");foreach (BarcodeReadOptions readOptions in readOptionsArray){Console.WriteLine(" {0} ({1}) supports options for the following symbologies:", readOptions.GetType().Name, readOptions.FriendlyName);Console.WriteLine(" ");BarcodeSymbology[] symbologies = readOptions.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 BarcodeReader_GetAllDefaultOptionsExample()Dim engine As New BarcodeEngine()Dim reader As BarcodeReader = engine.Reader' Show information on all the default read option classesDim readOptionsArray() As BarcodeReadOptions = reader.GetAllDefaultOptions()Console.WriteLine("Read options:")For Each readOptions As BarcodeReadOptions In readOptionsArrayConsole.WriteLine(" {0} ({1}) supports options for the following symbologies:", readOptions.GetType().Name, readOptions.FriendlyName)Console.WriteLine(" ")Dim symbologies() As BarcodeSymbology = readOptions.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 BarcodeReader_GetAllDefaultOptionsExample(){BarcodeEngine engine = new BarcodeEngine();BarcodeReader reader = engine.Reader;// Show information on all the default read option classesBarcodeReadOptions[] readOptionsArray = reader.GetAllDefaultOptions();Console.WriteLine("Read options:");foreach (BarcodeReadOptions readOptions in readOptionsArray){Console.WriteLine(" {0} ({1}) supports options for the following symbologies:", readOptions.GetType().Name, readOptions.FriendlyName);Console.WriteLine(" ");BarcodeSymbology[] symbologies = readOptions.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.ImageProcessingImports Leadtools.ImageProcessing.ColorPublic Sub BarcodeReader_GetAllDefaultOptionsExample()Dim engine As BarcodeEngine = New BarcodeEngine()Dim reader As BarcodeReader = engine.Reader' Show information on all the default read option classesDim readOptionsArray As BarcodeReadOptions() = reader.GetAllDefaultOptions()Console.WriteLine("Read options:")For Each readOptions As BarcodeReadOptions In readOptionsArrayConsole.WriteLine(" {0} ({1}) supports options for the following symbologies:", readOptions.GetType().Name, readOptions.FriendlyName)Console.WriteLine(" ")Dim symbologies As BarcodeSymbology() = readOptions.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 readOptionsEnd Sub
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
