Class SingleDecodeType
Namespace: Aspose.BarCode.BarCodeRecognition
Assembly: Aspose.BarCode.dll (25.2.0)
Single decode type. See decode type to get instance.
public sealed class SingleDecodeType : BaseDecodeType, IEquatable<basedecodetype>, IEquatable<singledecodetype>
Inheritance
object ← BaseDecodeType ← SingleDecodeType
Implements
IEquatable<basedecodetype>, IEquatable<singledecodetype>
Inherited Members
BaseDecodeType.ContainsAny(params BaseDecodeType[]), BaseDecodeType.Equals(SingleDecodeType), BaseDecodeType.Equals(MultyDecodeType), BaseDecodeType.Equals(BaseDecodeType), BaseDecodeType.Equals(object), BaseDecodeType.GetHashCode(), BaseDecodeType.TryParse(string, out SingleDecodeType), BaseDecodeType.TryParse(string, out MultyDecodeType), BaseDecodeType.TryParse(string, out BaseDecodeType), object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Examples
This sample shows how to get instance of single decode type.
SingleDecodeType singleType = DecodeType.QR
Dim singleType As SingleDecodeType
singleType = DecodeType.QR
Properties
TypeIndex
Gets an index of decode type
public short TypeIndex { get; }
Property Value
TypeName
Gets a name of decode type
public string TypeName { get; }
Property Value
Methods
ContainsAny(params BaseDecodeType[])
Returns a value indicating whether this instance is included into the list specified.
public override bool ContainsAny(params BaseDecodeType[] types)
Parameters
types
BaseDecodeType[]
Array of single and multy decode types
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 override 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(object)
Returns a value indicating whether this instance is equal to a specified Aspose.BarCode.BarCodeRecognition.SingleDecodeType 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.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
A 32-bit signed integer hash code.
GetString()
Converts the instance of SingleDecodeType to its equivalent string representation. The string format is: “Index:-1; Name:None”.
public string GetString()
Returns
A string representing the complete value of the single decode type
GetString(SingleDecodeType)
Converts the instance of SingleDecodeType to its equivalent string representation. The string format is: “Index:-1; Name:None”.
public static string GetString(SingleDecodeType instance)
Parameters
instance
SingleDecodeType
The SingleDecodeType instance to convert
Returns
A string representing the complete value of the given single decode type
Parse(string)
Converts the string representation of the name of a SingleDecodeType to its instance.
public static SingleDecodeType Parse(string stringDecodeType)
Parameters
stringDecodeType
string
A string containing the name of a SingleDecodeType to convert.
Returns
the instance of Aspose.BarCode.BarCodeRecognition.SingleDecodeType, if conversion was successful; otherwise, it returns Aspose.BarCode.BarCodeRecognition.DecodeType.None.
ToString()
Returns the name of the given SingleDecodeType as a string.
public override string ToString()
Returns
A string representing the name of the single decode type </singledecodetype></basedecodetype>