public BarcodeWriteOptions[] GetAllDefaultOptions()
@property (nonatomic, strong, readonly) NSArray<__kindof LTBarcodeWriteOptions *> *allDefaultOptions;
public BarcodeWriteOptions[] getAllDefaultOptions()
public:
array<BarcodeWriteOptions^>^ GetAllDefaultOptions();
def GetAllDefaultOptions(self):
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.Barcode;
using Leadtools.ImageProcessing;
public void BarcodeWriter_GetAllDefaultOptionsExample()
{
BarcodeEngine engine = new BarcodeEngine();
BarcodeWriter writer = engine.Writer;
// Show information on all the default write option classes
BarcodeWriteOptions[] 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();
}
}
}
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document