Class MultyDecodeType

Class MultyDecodeType

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

نوع رمزگشایی ترکیبی.

public class MultyDecodeType : BaseDecodeType, IEquatable<basedecodetype>, IEquatable<multydecodetype>

وراثت

objectBaseDecodeTypeMultyDecodeType

پیاده‌سازی‌ها

IEquatable<basedecodetype>, IEquatable<multydecodetype>

اعضای وراثت‌یافته

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.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

مثال‌ها

این نمونه نشان می‌دهد که چگونه انواع ترکیبی MultyDecode را ایجاد کنیم که شامل SingleDecodeType و MultiDecode باشد.

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)

سازنده‌ها

MultyDecodeType(params SingleDecodeType[])

یک نمونه جدید از کلاس Aspose.BarCode.BarCodeRecognition.MultyDecodeType را مقداردهی می‌کند.

public MultyDecodeType(params SingleDecodeType[] barcodeTypes)

پارامترها

barcodeTypes SingleDecodeType[]

آرایه‌ای از انواع رمزگشایی تکی

MultyDecodeType(params BaseDecodeType[])

یک نمونه جدید از کلاس Aspose.BarCode.BarCodeRecognition.MultyDecodeType را مقداردهی می‌کند.

public MultyDecodeType(params BaseDecodeType[] barcodeTypes)

پارامترها

barcodeTypes BaseDecodeType[]

آرایه‌ای از انواع رمزگشایی تک و چندگانه

خواص

GetSingleTypesCount

تعداد انواع تکی را برمی‌گرداند.

public int GetSingleTypesCount { get; }

مقدار خواص

int

متدها

Add(SingleDecodeType)

یک Aspose.BarCode.BarCodeRecognition.SingleDecodeType دیگر به MultyDecodeType اضافه می‌کند.

public void Add(SingleDecodeType singleType)

پارامترها

singleType SingleDecodeType

یک نوع رمزگشایی تکی که به لیست اضافه می‌شود.

ContainsAll(params BaseDecodeType[])

بررسی می‌کند که آیا شامل تمام انواع از انواع بارکد است یا خیر.

public bool ContainsAll(params BaseDecodeType[] barcodeTypes)

پارامترها

barcodeTypes BaseDecodeType[]

انواع بارکد تکی یا چندگانه ورودی

بازگشت

bool

مقدار درست است اگر تمام انواع شامل شده باشند.

ContainsAny(params BaseDecodeType[])

بررسی می‌کند که آیا هر یک از انواع موجود است یا خیر.

public override bool ContainsAny(params BaseDecodeType[] decodeTypes)

پارامترها

decodeTypes BaseDecodeType[]

انواع رمزگشایی

بازگشت

bool

مقدار درست است اگر هر یک از انواع شامل شده باشند.

Equals(MultyDecodeType)

مقداری را برمی‌گرداند که نشان می‌دهد آیا این نمونه برابر با یک مقدار مشخص Aspose.BarCode.BarCodeRecognition.MultyDecodeType است یا خیر.

public override bool Equals(MultyDecodeType other)

پارامترها

other MultyDecodeType

یک مقدار Aspose.BarCode.BarCodeRecognition.MultyDecodeType برای مقایسه با این نمونه.

بازگشت

bool

true اگر obj دارای همان مقدار با این نمونه باشد؛ در غیر این صورت، false.

Equals(object)

مقداری را برمی‌گرداند که نشان می‌دهد آیا این نمونه برابر با یک مقدار مشخص Aspose.BarCode.BarCodeRecognition.MultyDecodeType است یا خیر.

public override bool Equals(object obj)

پارامترها

obj object

یک مقدار System.Object برای مقایسه با این نمونه.

بازگشت

bool

true اگر obj دارای همان مقدار با این نمونه باشد؛ در غیر این صورت، false.

Exclude(SingleDecodeType)

Aspose.BarCode.BarCodeRecognition.SingleDecodeType را از MultyDecodeType حذف کرده و یک نمونه جدید MultyDecodeType برمی‌گرداند.

public MultyDecodeType Exclude(SingleDecodeType singleType)

پارامترها

singleType SingleDecodeType

یک نوع رمزگشایی تکی که باید حذف شود.

بازگشت

MultyDecodeType

نمونه جدید MultyDecodeType با SingleDecodeType حذف شده.

GetHashCode()

کد هش برای این نمونه را برمی‌گرداند.

public override int GetHashCode()

بازگشت

int

یک کد هش صحیح 32 بیتی.

GetSingleTypes()

لیستی از انواع تکی را نمایندگی می‌کند.

public List<singledecodetype> GetSingleTypes()

بازگشت

List<SingleDecodeType&gt;

لیست انواع تکی

ToString()

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

public override string ToString()

بازگشت

string

یک رشته که نمایانگر نمونه MultyDecodeType به صورت “singleDecodeType1, singleDecodeType2, …” است.

"AllSupportedTypes" زمانی بازمی‌گردد که تمام انواع شامل شده باشند.

TryParse(string, out MultyDecodeType)

نمایش رشته‌ای از یک MultyDecodeType را به نمونه آن تبدیل می‌کند. مقدار بازگشتی نشان می‌دهد که آیا تبدیل موفقیت‌آمیز بوده یا خیر.

public static bool TryParse(string parsingType, out MultyDecodeType result)

پارامترها

parsingType string

یک رشته به فرمت “AllSupportedTypes” یا “EAN8,EAN13,CodaBar” برای تبدیل.

result MultyDecodeType

یک MultyDecodeType واقعی که وقتی تبدیل با موفقیت انجام شد، بازگردانده می‌شود؛

در غیر این صورت، نوع نامعین بازگردانده می‌شود. Aspose.BarCode.BarCodeRecognition.DecodeType.None یا MultyDecodeType (“None”).

بازگشت

bool

true اگر s با موفقیت تبدیل شد؛ در غیر این صورت، false. </multydecodetype></basedecodetype>

 فارسی