PowerTools InputMan for Windows Forms 8.0J
AddressOutputSetting クラス
メンバ  使用例 

各コントロールの住所の設定を保存するために使用されるクラスを表します。
構文
Public Class AddressOutputSetting 
public class AddressOutputSetting 
使用例
次のサンプルコードはAddressOutputSettingを設定したGcAddressコンポーネントを特定のテキストボックスに設定する例です。
//  Please use the following namespace
//  using System.Windows.Forms;
//  using GrapeCity.Win.Editors;

public void SetOutputSetting()
{
    GcAddress gcAddress1 = new GcAddress();
    TextBox inputCodeTextBox = new TextBox();
    TextBox textBox1 = new TextBox();
    TextBox textBox2 = new TextBox();

    AddressOutputSetting setting = new AddressOutputSetting();
    setting.SplitAreaDetails = true;
    setting.AddressQuerymode = AddressQuerymode.ByZipCodeForAll;
    setting.GenerateCompanyAddressKana = true;

    // the first Address information query result will be ouput to textBox1 control.
    setting.AddressOutput = textBox1;
    // the first Address Kana information query result will be ouput to textBox2 control.
    setting.AddressKanaOutput = textBox2;

    gcAddress1.SetAddressOutputSetting(inputCodeTextBox, setting);
}
'  Please use the following namespace
'  using System.Windows.Forms;
'  using GrapeCity.Win.Editors;

Public Sub SetOutputSetting()
    Dim gcAddress1 As New GcAddress()
    Dim inputCodeTextBox As New TextBox()
    Dim textBox1 As New TextBox()
    Dim textBox2 As New TextBox()

    Dim setting As New AddressOutputSetting()
    setting.SplitAreaDetails = True
    setting.AddressQuerymode = AddressQuerymode.ByZipCodeForAll
    setting.GenerateCompanyAddressKana = True

    ' the first Address information query result will be ouput to textBox1 control.
    setting.AddressOutput = textBox1
    ' the first Address Kana information query result will be ouput to textBox2 control.
    setting.AddressKanaOutput = textBox2

    gcAddress1.SetAddressOutputSetting(inputCodeTextBox, setting)
End Sub
継承階層

System.Object
   GrapeCity.Win.Editors.AddressOutputSetting

参照

AddressOutputSetting メンバ
GrapeCity.Win.Editors 名前空間

 

 


© 2004-2015 GrapeCity inc. All rights reserved.