MESCIUS SPREAD for Windows Forms 15.0J
ColorPickerStyle 列挙体
使用例 使用例 

カラーピッカー型セルのレンダリング方法を指定します。
構文
'宣言
 
Public Enum ColorPickerStyle 
   Inherits System.Enum
public enum ColorPickerStyle : System.Enum 
メンバ
メンバ解説
Boxed指定された色を示すボックスをクライアント領域に表示します。
BoxedWithText指定された色を示すボックスをクライアント領域に表示し、ボックスの横にテキストを示します。
Fillクライアント領域全体を指定された色で塗りつぶします。
FillWithTextクライアント領域全体を指定された色で塗りつぶした上にテキストを重ねて表示します。
使用例
次のサンプルコードは、カラーピッカー型セルを作成します。
FarPoint.Win.Spread.CellType.ColorPickerCellType cp = new FarPoint.Win.Spread.CellType.ColorPickerCellType();
cp.AllowFullOpen = true;
cp.AnyColor = false;
cp.CustomColors = new int[] {255, 190, 50};
cp.FullOpen = true;
cp.Style = FarPoint.Win.Spread.CellType.ColorPickerStyle.BoxedWithText;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = cp;
Dim cp As New FarPoint.Win.Spread.CellType.ColorPickerCellType
cp.AllowFullOpen = True
cp.AnyColor = False
cp.CustomColors = New Integer() {255, 190, 50}
cp.FullOpen = True
cp.Style = FarPoint.Win.Spread.CellType.ColorPickerStyle.BoxedWithText
fpSpread1.ActiveSheet.Cells(0, 0).CellType = cp
継承階層

System.Object
   System.ValueType
      System.Enum
         FarPoint.Win.Spread.CellType.ColorPickerStyle

参照

FarPoint.Win.Spread.CellType 名前空間

 

 


© MESCIUS inc. All rights reserved.