MESCIUS SPREAD for Windows Forms 15.0J
Parent プロパティ (IChildModelSupport)
使用例 

親データソースを取得または設定します。
構文
'宣言
 
Property Parent As IChildModelSupport
IChildModelSupport Parent {get; set;}

プロパティ値

親データモデルを含むIChildModelSupportオブジェクト
使用例
次のサンプルコードは、親IDataSourceSupportオブジェクトを返します。
private void fpSpread1_ChildViewCreated(object sender, FarPoint.Win.Spread.ChildViewCreatedEventArgs e)
{
     FarPoint.Win.Spread.Model.IChildModelSupport mTest;
     mTest = (FarPoint.Win.Spread.Model.IChildModelSupport)e.SheetView.Models.Data;
     label1.Text = "The parent model is " + Convert.ToString(mTest.Parent);
}
Private Sub FpSpread1_ChildViewCreated(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.ChildViewCreatedEventArgs) Handles
FpSpread1.ChildViewCreated
     Dim mTest As FarPoint.Win.Spread.Model.IChildModelSupport
     mTest = e.SheetView.Models.Data
     Label1.Text = "The parent model is " & Convert.ToString(mTest.Parent)
End Sub
参照

IChildModelSupport インターフェース
IChildModelSupport メンバ

 

 


© MESCIUS inc. All rights reserved.