PowerTools InputMan for ASP.NET 8.0J
Width プロパティ (ImageItem)
使用例 

画像の幅を取得または設定します。
構文
Public Property Width As Integer
public int Width {get; set;}

プロパティ値

既定値:16
解説
ImageItemオブジェクトで設定した項目の画像は、コンボコントロールのGrapeCity.Web.Input.IMCombo.GcComboBox.ImageListおよびリストコントロールのGrapeCity.Web.Input.IMList.GcListBox.ImageListプロパティが参照する、ImageListオブジェクトに保持されます。
使用例
次のサンプルコードは、コンボコントロールでどの項目も選択されていないときに入力部分に表示する画像を設定する方法を示します。
Imports GrapeCity.Web.Input.IMCombo

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim aII As ImageItem = New ImageItem
    aII.Name = "Image0"
    aII.URL = "c:\SampleImage0.bmp"
    aII.Width = 20
    aII.Height = 20
    GcComboBox1.ImageList.Add(aII)

    GcComboBox1.UnselectedImageIndex = 0
End Sub
using GrapeCity.Web.Input.IMCombo;

private void Page_Load(object sender, System.EventArgs e)
{
    ImageItem aII = new ImageItem();
    aII.Name = "Image0";
    aII.URL = "c:\SampleImage0.bmp";
    aII.Width = 20;
    aII.Height = 20;

	GcComboBox1.UnselectedImageIndex = 0;
}
参照

ImageItem クラス
ImageItem メンバ

 

 


© 2005-2015 GrapeCity inc. All rights reserved.