FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > DefaultStyleCollection クラス : Compose メソッド |
'Declaration Public Function Compose( _ ByVal o As Object, _ ByVal destInfo As StyleInfo _ ) As StyleInfo
'使用法 Dim instance As DefaultStyleCollection Dim o As Object Dim destInfo As StyleInfo Dim value As StyleInfo value = instance.Compose(o, destInfo)
FarPoint.Win.Spread.DefaultStyleCollection dsc = new FarPoint.Win.Spread.DefaultStyleCollection(); Object[] myarray = new Object[dsc.Count]; FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo(); foreach(FarPoint.Win.Spread.NamedStyle style in FarPoint.Win.Spread.DefaultStyleCollection.Styles) { listBox1.Items.Add(style.Name); dsc.Compose(style.Name, si); } dsc.CopyTo(myarray,0);
Dim dsc As New FarPoint.Win.Spread.DefaultStyleCollection() Dim style As FarPoint.Win.Spread.NamedStyle Dim myarray(dsc.Count()) Dim si As New FarPoint.Win.Spread.StyleInfo() For Each style In dsc.Styles ListBox1.Items.Add(style.Name) dsc.Compose(style.Name, si) Next dsc.CopyTo(myarray, 0)