PowerTools SPREAD for Windows Forms 10.0J
Column プロパティ (Group)


グループ化の基準となる列のインデックスを取得します。
構文
'Declaration
 
Public ReadOnly Property Column As Integer
'使用法
 
Dim instance As Group
Dim value As Integer
 
value = instance.Column
public int Column {get;}

プロパティ値

列インデックスを表す Integer
次のサンプルコードは、最初のグループの列インデックスを返します。
fpSpread1.AllowColumnMove = true;
fpSpread1.ActiveSheet.GroupBarInfo.Visible = true;
fpSpread1.ActiveSheet.AllowGroup = true;

 private void button1_Click(object sender, EventArgs e)
        {
            FarPoint.Win.Spread.Model.GroupDataModel gdm;
            gdm = (FarPoint.Win.Spread.Model.GroupDataModel)fpSpread1.ActiveSheet.Models.Data;
            textBox1.Text = ((FarPoint.Win.Spread.Model.Group)gdm.Groups[0]).Column.ToString();         
        }
FpSpread1.AllowColumnMove = True
FpSpread1.ActiveSheet.GroupBarInfo.Visible = True
FpSpread1.ActiveSheet.AllowGroup = True

 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim gdm As FarPoint.Win.Spread.Model.GroupDataModel
        gdm = FpSpread1.ActiveSheet.Models.Data
        TextBox1.Text = gdm.Groups(0).Column.ToString()
    End Sub
参照

Group クラス
Group メンバ

 

 


© 2004-2017, GrapeCity inc. All rights reserved.