Class HanXinExtCodetextBuilder

Class HanXinExtCodetextBuilder

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

גנרטור טקסט קוד מורחב עבור קוד חן שין במצב מורחב של HanXinEncodeMode

public class HanXinExtCodetextBuilder

ירושה

objectHanXinExtCodetextBuilder

חברים ירושים

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

דוגמאות

//מצב טקסט קוד מורחב
//צור טקסט קוד
var codeTextBuilder = new HanXinExtCodetextBuilder();
codeTextBuilder.AddGB18030TwoByte("漄");
codeTextBuilder.AddGB18030FourByte("㐁");
codeTextBuilder.AddCommonChineseRegionOne("全");
codeTextBuilder.AddCommonChineseRegionTwo("螅");
codeTextBuilder.AddNumeric("123");
codeTextBuilder.AddText("qwe");
codeTextBuilder.AddUnicode("ıntəˈnæʃənəl");
codeTextBuilder.AddECI("ΑΒΓΔΕ", 9);
codeTextBuilder.AddAuto("abc");
codeTextBuilder.AddBinary("abc");
codeTextBuilder.AddURI(@"backslashes_should_be_doubled\000555:test");
codeTextBuilder.AddGS1(@"(01)03453120000011(17)191125(10)ABCD1234(21)10");

var expectedStr = @"漄㐁全螅123qweıntəˈnæʃənəlΑΒΓΔΕabcabcbackslashes_should_be_doubled\000555:test(01)03453120000011(17)191125(10)ABCD1234(21)10";

//צור טקסט קוד
var str = codeTextBuilder.GetExtendedCodetext();

//צור
using (var bg = new BarcodeGenerator(EncodeTypes.HanXin, str))
{
    bg.Parameters.Barcode.HanXin.HanXinEncodeMode = HanXinEncodeMode.Extended;
    var img = bg.GenerateBarCodeImage();
    using (var r = new BarCodeReader(img, DecodeType.HanXin))
     {
        var found = r.ReadBarCodes();
        Assert.AreEqual(1, found.Length);
        Assert.AreEqual(expectedStr, found[0].CodeText);
      }
}

בונים

HanXinExtCodetextBuilder()

public HanXinExtCodetextBuilder()

שיטות

AddAuto(string)

מוסיף קטע טקסט קוד במצב אוטומטי

public void AddAuto(string text)

פרמטרים

text string

מחרוזת טקסט קוד

AddBinary(string)

מוסיף קטע טקסט קוד במצב בינארי

public void AddBinary(string text)

פרמטרים

text string

מחרוזת טקסט קוד

AddCommonChineseRegionOne(string)

מוסיף קטע טקסט קוד במצב אזור סיני נפוץ אחד

public void AddCommonChineseRegionOne(string text)

פרמטרים

text string

מחרוזת טקסט קוד

AddCommonChineseRegionTwo(string)

מוסיף קטע טקסט קוד במצב אזור סיני נפוץ שני

public void AddCommonChineseRegionTwo(string text)

פרמטרים

text string

מחרוזת טקסט קוד

AddECI(string, int)

מוסיף קטע טקסט קוד במצב ECI

public void AddECI(string text, int encoding)

פרמטרים

text string

מחרוזת טקסט קוד

encoding int

קידוד ECI בפורמט של מספר שלם

AddGB18030FourByte(string)

מוסיף קטע טקסט קוד במצב GB18030 ארבעה בתים

public void AddGB18030FourByte(string text)

פרמטרים

text string

מחרוזת טקסט קוד

AddGB18030TwoByte(string)

מוסיף קטע טקסט קוד במצב GB18030 שני בתים

public void AddGB18030TwoByte(string text)

פרמטרים

text string

מחרוזת טקסט קוד

AddGS1(string)

מוסיף קטע טקסט קוד במצב GS1

public void AddGS1(string text)

פרמטרים

text string

מחרוזת טקסט קוד

AddNumeric(string)

מוסיף קטע טקסט קוד במצב מספרי

public void AddNumeric(string text)

פרמטרים

text string

מחרוזת טקסט קוד

AddText(string)

מוסיף קטע טקסט קוד במצב טקסט

public void AddText(string text)

פרמטרים

text string

מחרוזת טקסט קוד

AddURI(string)

מוסיף קטע טקסט קוד במצב URI

public void AddURI(string text)

פרמטרים

text string

מחרוזת טקסט קוד

AddUnicode(string)

מוסיף קטע טקסט קוד במצב יוניקוד

public void AddUnicode(string text)

פרמטרים

text string

מחרוזת טקסט קוד

GetExtendedCodetext()

מחזיר טקסט קוד ממחבר טקסט קוד במצב מורחב

public string GetExtendedCodetext()

מחזיר

string

טקסט קוד במצב מורחב

 Ελληνικά