Class HanXinExtCodetextBuilder
ja nimityö: Aspose.BarCode.Generation Kokoelma: Aspose.BarCode.dll (25.4.0)
Laajennettu koodintekstin tuottaja Han Xin-koodille Laajennettu HanXinEncodeMode
public class HanXinExtCodetextBuilder
Inheritance
object ← HanXinExtCodetextBuilder
Perintöjäsenet
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
//Extended codetext mode
//create codetext
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";
//generate codetext
var str = codeTextBuilder.GetExtendedCodetext();
//generate
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);
}
}
Constructors
HanXinExtCodetextBuilder()
public HanXinExtCodetextBuilder()
Methods
AddAuto(String)
Lisätään koodetext-fragmenteja automaattisessa muodossa
public void AddAuto(string text)
Parameters
text
string
Koodekstin sarja
AddBinary(String)
Lisätään koodetext-fragmenteja binary-tilassa
public void AddBinary(string text)
Parameters
text
string
Koodekstin sarja
AddCommonChineseRegionOne(String)
Lisätään koodetext-fragmentti Common Chinese Region One -tilassa
public void AddCommonChineseRegionOne(string text)
Parameters
text
string
Koodekstin sarja
AddCommonChineseRegionTwo(String)
Lisätään koodetext fragmentti yhteinen Kiinan alueen kaksi tilaa
public void AddCommonChineseRegionTwo(string text)
Parameters
text
string
Koodekstin sarja
Lisätiedot(Tyyppi, int)
Lisätään koodetext-fragmentti ECI-tilassa
public void AddECI(string text, int encoding)
Parameters
text
string
Koodekstin sarja
encoding
int
ECI koodaus täysmuodossa
LisääGB18030FourByte(String)
Lisätään koodetextin kappaleita GB18030 neljällä byteillä
public void AddGB18030FourByte(string text)
Parameters
text
string
Koodekstin sarja
LisääGB18030TwoByte(String)
Lisätään koodetextin kappaleita GB18030 kahdessa byte-tilassa
public void AddGB18030TwoByte(string text)
Parameters
text
string
Koodekstin sarja
Lisätietoja1(String)
Lisätään koodetext-fragmentti GS1-tilassa
public void AddGS1(string text)
Parameters
text
string
Koodekstin sarja
AddNumeric(String)
Lisätään koodetext-fragmentti Numeric-tilassa
public void AddNumeric(string text)
Parameters
text
string
Koodekstin sarja
AddText(String)
Lisätään koodetext-fragmentti tekstimen muodossa
public void AddText(string text)
Parameters
text
string
Koodekstin sarja
Adduriä(String)
Lisätään koodetext-fragmentti URI-tilassa
public void AddURI(string text)
Parameters
text
string
Koodekstin sarja
AddUnicode(String)
Lisäosat Unicode-muodossa
public void AddUnicode(string text)
Parameters
text
string
Koodekstin sarja
GetExtendedCodetext()
Palauttaa codetext Extended mode codetext builderista
public string GetExtendedCodetext()
Returns
Laajennettu versio Extended Mode