Class SingleDecodeType

Class SingleDecodeType

Namespace: Aspose.BarCode.BarCodeRecognition
Assembly: Aspose.BarCode.dll (25.1.0)

单解码类型。请参阅解码类型以获取实例。

public sealed class SingleDecodeType : BaseDecodeType, IEquatable<basedecodetype>, IEquatable<singledecodetype>

继承

objectBaseDecodeTypeSingleDecodeType

实现

IEquatable<basedecodetype>, IEquatable<singledecodetype>

继承成员

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()

示例

此示例演示如何获取单解码类型的实例。

SingleDecodeType singleType = DecodeType.QR 

Dim singleType As SingleDecodeType 
singleType = DecodeType.QR

属性

TypeIndex

获取解码类型的索引

public short TypeIndex { get; }

属性值

short

TypeName

获取解码类型的名称

public string TypeName { get; }

属性值

string

方法

ContainsAny(params BaseDecodeType[])

返回一个值,指示此实例是否包含在指定的列表中。

public override bool ContainsAny(params BaseDecodeType[] types)

参数

types BaseDecodeType[]

单解码和多解码类型的数组

返回

bool

如果任何类型包含在内,则值为真

Equals(SingleDecodeType)

返回一个值,指示此实例是否等于指定的 Aspose.BarCode.BarCodeRecognition.SingleDecodeType 值。

public override bool Equals(SingleDecodeType other)

参数

other SingleDecodeType

要与此实例进行比较的 Aspose.BarCode.BarCodeRecognition.SingleDecodeType 值。

返回

bool

true 如果 obj 的值与此实例相同;否则,false

Equals(object)

返回一个值,指示此实例是否等于指定的 Aspose.BarCode.BarCodeRecognition.SingleDecodeType 值。

public override bool Equals(object obj)

参数

obj object

要与此实例进行比较的 System.Object 值。

返回

bool

true 如果 obj 的值与此实例相同;否则,false

GetHashCode()

返回此实例的哈希代码。

public override int GetHashCode()

返回

int

一个 32 位签名整数哈希代码。

GetString()

将 SingleDecodeType 的实例转换为其等效的字符串表示形式。 字符串格式为:“Index:-1; Name:None”。

public string GetString()

返回

string

表示单解码类型完整值的字符串

GetString(SingleDecodeType)

将 SingleDecodeType 的实例转换为其等效的字符串表示形式。 字符串格式为:“Index:-1; Name:None”。

public static string GetString(SingleDecodeType instance)

参数

instance SingleDecodeType

要转换的 SingleDecodeType 实例

返回

string

表示给定单解码类型完整值的字符串

Parse(string)

将 SingleDecodeType 名称的字符串表示形式转换为其实例。

public static SingleDecodeType Parse(string stringDecodeType)

参数

stringDecodeType string

包含要转换的 SingleDecodeType 名称的字符串。

返回

SingleDecodeType

如果转换成功,则返回 Aspose.BarCode.BarCodeRecognition.SingleDecodeType 的实例;否则,返回 Aspose.BarCode.BarCodeRecognition.DecodeType.None

ToString()

返回给定 SingleDecodeType 的名称作为字符串。

public override string ToString()

返回

string

表示单解码类型名称的字符串

 中文