LEADTOOLSバーコード(Leadtools.Barcodeアセンブリ)

フレームを表示

GetAllDefaultOptionsメソッド(BarcodeReader)








このメソッドに関する詳細は、GetAllDefaultOptionsを参照してください。

構文
public IBarcodeReadOptions[] GetAllDefaultOptions()
'Declaration
 
Public Function GetAllDefaultOptions() As IBarcodeReadOptions()
'Usage
 
Dim instance As BarcodeReader
Dim value() As IBarcodeReadOptions
 
value = instance.GetAllDefaultOptions()
public IBarcodeReadOptions[] GetAllDefaultOptions()
 function Leadtools.Barcode.BarcodeReader.GetAllDefaultOptions()
public:
array<IBarcodeReadOptions^>^ GetAllDefaultOptions(); 

戻り値

現時点ではすべてのデフォルトの読まれたオプションを格納するBarcodeReadOptions派生型の配列は、このBarcodeReaderで設定しました。
解説

注意:LEADTOOLS for .NETにおいて、IBarcodeReadOptionsBarcodeReadOptionsに相当します。

サンプル
Copy Code  
Imports Leadtools
Imports Leadtools.Codecs
Imports Leadtools.Forms
Imports Leadtools.Barcode
Imports Leadtools.ImageProcessing

      
Public Sub BarcodeReader_GetAllDefaultOptionsExample()
   Dim engine As New BarcodeEngine()
   Dim reader As BarcodeReader = engine.Reader
   ' Show information on all the default read option classes
   Dim readOptionsArray() As BarcodeReadOptions = reader.GetAllDefaultOptions()
   Console.WriteLine("Read options:")
   For Each readOptions As BarcodeReadOptions In readOptionsArray
      Console.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 - 1
         Console.Write(symbologies(i))
         If i <> (symbologies.Length - 1) Then
            Console.Write(", ")
         Else
            Console.WriteLine()
         End If
      Next
   Next
End Sub
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 classes
   BarcodeReadOptions[] 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();
         }
      }
   }
}
using Leadtools;
using Leadtools.Codecs;
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 classes
   IBarcodeReadOptions[] readOptionsArray = reader.GetAllDefaultOptions();
   Debug.WriteLine("Read options:");
   foreach(IBarcodeReadOptions readOptions in readOptionsArray)
   {
      Debug.WriteLine("  {0} ({1}) supports options for the following symbologies:", readOptions.GetType().Name, readOptions.FriendlyName);
      Debug.WriteLine("     ");
      BarcodeSymbology[] symbologies = readOptions.GetSupportedSymbologies();
      StringBuilder sb = new StringBuilder();
      for(int i = 0; i < symbologies.Length; i++)
      {
         sb.Append(symbologies[i].ToString());
         if(i != (symbologies.Length - 1))
         {
            sb.Append(", ");
         }
         else
         {
            sb.AppendLine();
         }
      }
      Debug.WriteLine(sb.ToString());
   }
}
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 classes
   BarcodeReadOptions[] 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 Leadtools
Imports Leadtools.Codecs
Imports Leadtools.Forms
Imports Leadtools.Barcode
Imports Leadtools.ImageProcessing
Imports Leadtools.ImageProcessing.Color

Public Sub BarcodeReader_GetAllDefaultOptionsExample()
   Dim engine As BarcodeEngine = New BarcodeEngine()
   Dim reader As BarcodeReader = engine.Reader
   ' Show information on all the default read option classes
   Dim readOptionsArray As BarcodeReadOptions() = reader.GetAllDefaultOptions()
   Console.WriteLine("Read options:")
   For Each readOptions As BarcodeReadOptions In readOptionsArray
      Console.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 = 0
      Do While i < symbologies.Length
         Console.Write(symbologies(i))
         If i <> (symbologies.Length - 1) Then
            Console.Write(", ")
         Else
            Console.WriteLine()
         End If
         i += 1
      Loop
   Next readOptions
End Sub
必要条件

ターゲットプラットホーム

参照

参照

BarcodeReaderクラス
BarcodeReaderメンバ

Leadtools.Barcodeは、バーコードモジュールのライセンスと、解除キーが必要です。詳細は、以下を参照してください。LEADTOOLSツールキット機能