PowerTools PlusPak for Windows Forms 8.0J
Aztec クラス
メンバ  使用例 

Aztec固有の値の設定を行うためのクラスです。
構文
Public Class Aztec 
   Inherits GrapeCity.Win.BarCode.ValueType.ValueBase
   Implements GrapeCity.Win.BarCode.IBarCodeOptions 
public class Aztec : GrapeCity.Win.BarCode.ValueType.ValueBase, GrapeCity.Win.BarCode.IBarCodeOptions  
使用例

次のサンプルコードは、GrapeCity.Win.BarCode.GcBarCodeAztec コーデックを使用する方法と、Aztec のプロパティの設定例を示します。

private void CreateAztecBarCode()
{
    // Create 3 GcBarCode controls to show the text "password is 123456"
    // The text will be splited to 3 parts, and each GcBarCode will show one of the parts.

    // gcBarCode1 shows "passwo"
    GcBarCode gcBarCode1 = new GcBarCode();
    gcBarCode1.Type = BarCode.ValueType.BarType.Aztec;
    gcBarCode1.Aztec.StructureAppend = true;
    gcBarCode1.Aztec.StructureNumber = 3;
    gcBarCode1.Aztec.StructureIndex = 1;
    gcBarCode1.Aztec.AztecSymbolSize = BarCode.Options.Aztec.EnumAztecSymbolSize.Auto;
    gcBarCode1.Value = "password is 123456";
    gcBarCode1.Location = new Point(0, 0);

    // gcBarCode2 shows "rd is "
    GcBarCode gcBarCode2 = new GcBarCode();
    gcBarCode2.Type = BarCode.ValueType.BarType.Aztec;
    gcBarCode2.Aztec.StructureAppend = true;
    gcBarCode2.Aztec.StructureNumber = 3;
    gcBarCode2.Aztec.StructureIndex = 2;
    gcBarCode2.Aztec.AztecSymbolSize = BarCode.Options.Aztec.EnumAztecSymbolSize.Auto;
    gcBarCode2.Value = "password is 123456";
    gcBarCode2.Location = new Point(150, 0);

    // gcBarCode3 shows "123456"
    GcBarCode gcBarCode3 = new GcBarCode();
    gcBarCode3.Type = BarCode.ValueType.BarType.Aztec;
    gcBarCode3.Aztec.StructureAppend = true;
    gcBarCode3.Aztec.StructureNumber = 3;
    gcBarCode3.Aztec.StructureIndex = 3;
    gcBarCode3.Aztec.AztecSymbolSize = BarCode.Options.Aztec.EnumAztecSymbolSize.Auto;
    gcBarCode3.Value = "password is 123456";
    gcBarCode3.Location = new Point(300, 0);

    // Add the GcBarCode controls to the form
    this.Controls.Add(gcBarCode1);
    this.Controls.Add(gcBarCode2);
    this.Controls.Add(gcBarCode3);
}
Private Sub CreateAztecBarCode()
    ' Create 3 GcBarCode controls to show the text "password is 123456"
    ' The text will be splited to 3 parts, and each GcBarCode will show one of the parts.

    ' gcBarCode1 shows "passwo"
    Dim gcBarCode1 As New GcBarCode()
    gcBarCode1.Type = BarCode.ValueType.BarType.Aztec
    gcBarCode1.Aztec.StructureAppend = True
    gcBarCode1.Aztec.StructureNumber = 3
    gcBarCode1.Aztec.StructureIndex = 1
    gcBarCode1.Aztec.AztecSymbolSize = Options.Aztec.EnumAztecSymbolSize.Auto
    gcBarCode1.Value = "password is 123456"
    gcBarCode1.Location = New Point(0, 0)

    ' gcBarCode2 shows "rd is "
    Dim gcBarCode2 As New GcBarCode()
    gcBarCode2.Type = BarCode.ValueType.BarType.Aztec
    gcBarCode2.Aztec.StructureAppend = True
    gcBarCode2.Aztec.StructureNumber = 3
    gcBarCode2.Aztec.StructureIndex = 2
    gcBarCode2.Aztec.AztecSymbolSize = Options.Aztec.EnumAztecSymbolSize.Auto
    gcBarCode2.Value = "password is 123456"
    gcBarCode2.Location = New Point(150, 0)

    ' gcBarCode3 shows "123456"
    Dim gcBarCode3 As New GcBarCode()
    gcBarCode3.Type = BarCode.ValueType.BarType.Aztec
    gcBarCode3.Aztec.StructureAppend = True
    gcBarCode3.Aztec.StructureNumber = 3
    gcBarCode3.Aztec.StructureIndex = 3
    gcBarCode3.Aztec.AztecSymbolSize = Options.Aztec.EnumAztecSymbolSize.Auto
    gcBarCode3.Value = "password is 123456"
    gcBarCode2.Location = New Point(300, 0)

    ' Add the GcBarCode controls to the form
    Me.Controls.Add(gcBarCode1)
    Me.Controls.Add(gcBarCode2)
    Me.Controls.Add(gcBarCode3)
End Sub
継承階層

System.Object
      GrapeCity.Win.BarCode.Options.Aztec

プラットフォーム

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

参照

Aztec メンバ
GrapeCity.Win.BarCode.Options 名前空間

Send Feedback