Class MultyDecodeType
Namespace: Aspose.BarCode.BarCodeRecognition
Assembly: Aspose.BarCode.dll (25.4.0)
Composite decode type.
public class MultyDecodeType : BaseDecodeType, IEquatable<basedecodetype>, IEquatable<multydecodetype>
Inheritance
object ← BaseDecodeType ← MultyDecodeType
Implements
IEquatable<basedecodetype> , IEquatable<multydecodetype>
Inherited Members
BaseDecodeType.ContainsAny(params BaseDecodeType[]) , BaseDecodeType.Equals(SingleDecodeType) , BaseDecodeType.Equals(MultyDecodeType) , BaseDecodeType.Equals(BaseDecodeType) , BaseDecodeType.Equals(object) , BaseDecodeType.TryParse(string, out SingleDecodeType) , BaseDecodeType.TryParse(string, out MultyDecodeType) , BaseDecodeType.TryParse(string, out BaseDecodeType) , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
This sample shows how to create compound MultyDecode types that combine SingleDecodeType and MultiDecode types.
MultyDecodeType types1 = new MultyDecodeType(DecodeType.QR, DecodeType.DataMatrix);
MultyDecodeType types2 = new MultyDecodeType(types1, DecodeType.Code128, DecodeType.Code39);
Dim multyType1 As MultyDecodeType
multyType1 = New MultyDecodeType(DecodeType.QR, DecodeType.DataMatrix)
Dim multyType2 As MultyDecodeType
multyType2 = New MultyDecodeType(multyType1, DecodeType.Code128, DecodeType.Code39)
Constructors
MultyDecodeType(params SingleDecodeType[])
Initializes a new instance of the Aspose.BarCode.BarCodeRecognition.MultyDecodeType class.
public MultyDecodeType(params SingleDecodeType[] barcodeTypes)
Parameters
barcodeTypes
SingleDecodeType
[]
Array of single decode types
MultyDecodeType(params BaseDecodeType[])
Initializes a new instance of the Aspose.BarCode.BarCodeRecognition.MultyDecodeType class.
public MultyDecodeType(params BaseDecodeType[] barcodeTypes)
Parameters
barcodeTypes
BaseDecodeType
[]
Array of multy and single decode types
Properties
GetSingleTypesCount
Returns a number of single types.
public int GetSingleTypesCount { get; }
Property Value
Methods
Add(SingleDecodeType)
Adds one more Aspose.BarCode.BarCodeRecognition.SingleDecodeType to the MultyDecodeType.
public void Add(SingleDecodeType singleType)
Parameters
singleType
SingleDecodeType
A Single DecodeType to be added to the list
ContainsAll(params BaseDecodeType[])
Check if this contains all types from barcode types.
public bool ContainsAll(params BaseDecodeType[] barcodeTypes)
Parameters
barcodeTypes
BaseDecodeType
[]
Input single or multy barcode types
Returns
Value is a true if all types are included into
ContainsAny(params BaseDecodeType[])
Is contain any of types
public override bool ContainsAny(params BaseDecodeType[] decodeTypes)
Parameters
decodeTypes
BaseDecodeType
[]
Decode types
Returns
Value is a true if any types are included into
Equals(MultyDecodeType)
Returns a value indicating whether this instance is equal to a specified Aspose.BarCode.BarCodeRecognition.MultyDecodeType value.
public override bool Equals(MultyDecodeType other)
Parameters
other
MultyDecodeType
An Aspose.BarCode.BarCodeRecognition.MultyDecodeType value to compare to this instance.
Returns
true if obj has the same value as this instance; otherwise, false.
Equals(object)
Returns a value indicating whether this instance is equal to a specified Aspose.BarCode.BarCodeRecognition.MultyDecodeType value.
public override bool Equals(object obj)
Parameters
obj
object
An System.Object value to compare to this instance.
Returns
true if obj has the same value as this instance; otherwise, false.
Exclude(SingleDecodeType)
Excludes Aspose.BarCode.BarCodeRecognition.SingleDecodeType from the MultyDecodeType and returns new MultyDecodeType instance.
public MultyDecodeType Exclude(SingleDecodeType singleType)
Parameters
singleType
SingleDecodeType
A Single DecodeType to be excluded.
Returns
New MultyDecodeType instance with excluded SingleDecodeType.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
A 32-bit signed integer hash code.
GetSingleTypes()
Represents a list of single types.
public List<singledecodetype> GetSingleTypes()
Returns
List < SingleDecodeType >
List of single types
ToString()
Overridden method representing MultyDecodeType as a string.
public override string ToString()
Returns
A string representing MultyDecodeType instance as “singleDecodeType1, singleDecodeType2, …”
"AllSupportedTypes" returns when all types are included.
TryParse(string, out MultyDecodeType)
Converts the string representation of a MultyDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.
public static bool TryParse(string parsingType, out MultyDecodeType result)
Parameters
parsingType
string
A string in the format as either “AllSupportedTypes” or “EAN8,EAN13,CodaBar” to convert.
result
MultyDecodeType
An actual MultyDecodeType is returned, when conversion has completed successfully;
otherwise it returns indefinite type. Aspose.BarCode.BarCodeRecognition.DecodeType.None or MultyDecodeType (“None”).
Returns
true if s was converted successfully; otherwise, false. </multydecodetype></basedecodetype>