PowerTools SPREAD for Windows Forms 8.0J
GroupState 列挙体


アウトライン(範囲グループ)の状態を指定します。
構文
'Declaration
 
Public Enum GroupState 
   Inherits System.Enum
'使用法
 
Dim instance As GroupState
public enum GroupState : System.Enum 
メンバ
メンバ説明
Collapsed+記号で示される、折りたたまれた状態
Expanded-記号で示される、展開された状態
PartCollapsed内部使用のみ。+記号で示される、あいまいな(または不定な)状態
次のサンプルコードは、特定の条件に応じてグループの色を変更します。
private void fpSpread1_RangeGroupStateChanged(object sender, FarPoint.Win.Spread.RangeGroupStateChangedEventArgs e) 
{
if ((e.IsRowGroup == false)) 
{
if ((e.RangeGroupInfo.State == FarPoint.Win.Spread.GroupState.Expanded)) 
{
e.View.Sheets[fpSpread1.ActiveSheetIndex].RangeGroupBackgroundColor = Color.Bisque;
}
}
}
Private Sub FpSpread1_RangeGroupStateChanged(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.RangeGroupStateChangedEventArgs)
Handles FpSpread1.RangeGroupStateChanged
If e.IsRowGroup = False Then
If e.RangeGroupInfo.State = FarPoint.Win.Spread.GroupState.Expanded Then
e.View.Sheets(FpSpread1.ActiveSheetIndex).RangeGroupBackgroundColor = Color.Bisque
End If
End If
End Sub
継承階層

System.Object
   System.ValueType
      System.Enum
         FarPoint.Win.Spread.GroupState

参照

FarPoint.Win.Spread 名前空間

 

 


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