Class BaseDecodeType
Namespace: Aspose.BarCode.BarCodeRecognition
Assembly: Aspose.BarCode.dll (25.12.0)
Base class for MultiDecodeType and SingleDecodeType.
public abstract class BaseDecodeType : IEquatable<BaseDecodeType>Inheritance
Derived
MultiDecodeType , SingleDecodeType
Implements
Inherited Members
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 use BaseDecodeType with SingleDecodeType and MultiDecodeType
BaseDecodeType decodeOne = DecodeType.Code128;
BaseDecodeType decodeTwo = new MultiDecodeType(DecodeType.Code128, DecodeType.Code39, DecodeType.Code39FullASCII);
Dim decodeOne As BaseDecodeType = DecodeType.Code128
Dim decodeTwo As BaseDecodeType = New MultiDecodeType(DecodeType.Code128, DecodeType.Code39, DecodeType.Code39FullASCII)Methods
ContainsAny(params BaseDecodeType[])
Determines whether any of the given decode types is included into
public abstract bool ContainsAny(params BaseDecodeType[] types)Parameters
types BaseDecodeType
[]
Types to verify
Returns
Value is a true if any types are included into
Equals(SingleDecodeType)
Returns a value indicating whether this instance is equal to a specified Aspose.BarCode.BarCodeRecognition.SingleDecodeType value.
public virtual bool Equals(SingleDecodeType other)Parameters
other SingleDecodeType
An Aspose.BarCode.BarCodeRecognition.SingleDecodeType value to compare to this instance.
Returns
true if obj has the same value as this instance; otherwise, false.
Equals(MultiDecodeType)
Returns a value indicating whether this instance is equal to a specified Aspose.BarCode.BarCodeRecognition.MultiDecodeType value.
public virtual bool Equals(MultiDecodeType other)Parameters
other MultiDecodeType
An Aspose.BarCode.BarCodeRecognition.MultiDecodeType value to compare to this instance.
Returns
true if obj has the same value as this instance; otherwise, false.
Equals(BaseDecodeType)
Returns a value indicating whether this instance is equal to a specified Aspose.BarCode.BarCodeRecognition.BaseDecodeType value.
public bool Equals(BaseDecodeType other)Parameters
other BaseDecodeType
An Aspose.BarCode.BarCodeRecognition.BaseDecodeType 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.BaseDecodeType 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.
TryParse(string, out SingleDecodeType)
Converts the string representation of a SingleDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.
public static bool TryParse(string parsingType, out SingleDecodeType result)Parameters
parsingType string
A string containing a SingleDecodeType in the format as “EAN8” or “EAN13” or “CodaBar”… to convert.
result SingleDecodeType
An actual SingleDecodeType is returned, when conversion has completed successfully; otherwise it returns indefinite type: DecodeType.None.
Returns
true if parsingType was converted successfully; otherwise, false.
TryParse(string, out MultiDecodeType)
Converts the string representation of a MultiDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.
public static bool TryParse(string parsingType, out MultiDecodeType result)Parameters
parsingType string
A string containing a MultiDecodeType representation to convert.
result MultiDecodeType
An actual MultiDecodeType is returned, when conversion has completed successfully; otherwise it returns indefinite type: new MultiDecodeType(DecodeType.None)
Returns
true if parsingType was converted successfully; otherwise, false.
TryParse(string, out BaseDecodeType)
Converts the string representation of a BaseDecodeType to its instance, having determined the concrete type. A return value indicates whether the conversion succeeded or failed.
public static bool TryParse(string parsingType, out BaseDecodeType result)Parameters
parsingType string
A string containing a MultiDecodeType representation to convert.
result BaseDecodeType
An actual MultiDecodeType is returned, when conversion has completed successfully; otherwise it returns indefinite type: DecodeType.None.
Returns
true if parsingType was converted successfully; otherwise, false.