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

رشته‌ای که نمایانگر نام نوع دیکود تک است.

 فارسی