PowerTools InputMan for Windows Forms 8.0J
SetAddressOutputSetting メソッド
使用例 

AddressOutputSetting を関連付ける System.Windows.Forms.Control
指定したコントロールの住所検索設定を示す AddressOutputSetting
AddressOutputSetting を指定したコントロールに関連付けます。
構文
Public Sub SetAddressOutputSetting( _
   ByVal control As Control, _
   ByVal addressOutputSetting As AddressOutputSetting _
) 
public void SetAddressOutputSetting( 
   Control control,
   AddressOutputSetting addressOutputSetting
)

パラメータ

control
AddressOutputSetting を関連付ける System.Windows.Forms.Control
addressOutputSetting
指定したコントロールの住所検索設定を示す 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
参照

GcAddress クラス
GcAddress メンバ

 

 


© 2004-2015 GrapeCity inc. All rights reserved.