MESCIUS SPREAD for Windows Forms 17.0J
SortDescendingImageDisabled フィールド

無効な降順ソートインジケータの画像のインデックス(7)を指定します。
構文
'Declaration
 
Public Const SortDescendingImageDisabled As Integer
public const int SortDescendingImageDisabled

フィールド値

ユーザー インタフェースのこの部分に対応するインデックスを表す Integer
次のサンプルコードは、指定したフィールドの画像を設定します。
FarPoint.Win.Spread.SpreadView wrkbk = fpSpread1.GetRootWorkbook(); 
wrkbk.SetImage(FarPoint.Win.Spread.SpreadView.SortAscendingImage, Image.FromFile("D:\\up.bmp")); 
wrkbk.SetImage(FarPoint.Win.Spread.SpreadView.SortAscendingImageDisabled, Image.FromFile("D:\\up-dis.bmp")); 
wrkbk.SetImage(FarPoint.Win.Spread.SpreadView.SortDescendingImage, Image.FromFile("D:\\down.bmp")); 
wrkbk.SetImage(FarPoint.Win.Spread.SpreadView.SortDescendingImageDisabled, Image.FromFile("D:\\down-dis.bmp")); 
wrkbk.SetImage(FarPoint.Win.Spread.SpreadView.SortUnsortedImage, Image.FromFile("D:\\unsort.bmp")); 
wrkbk.SetImage(FarPoint.Win.Spread.SpreadView.SortUnsortedImageDisabled, Image.FromFile("D:\\unsort-dis.bmp")); 

Random r = new Random();
int i, j = 0;
for (i = 0; i <;= 7; i++)
    for (j = 0; j<= 7; j++)
    {
        fpSpread1.ActiveSheet.SetValue(i, j, r.Next().ToString());
    }

fpSpread1.ActiveSheet.Columns[0].AllowAutoSort = true;

Image indicator;
indicator = wrkbk.GetImage(4);
pictureBox1.Image = indicator;
Dim wrkbk As FarPoint.Win.Spread.SpreadView = fpSpread1.GetRootWorkbook()
wrkbk.SetImage(FarPoint.Win.Spread.SpreadView.SortAscendingImage, Image.FromFile("D:\up.bmp"))
wrkbk.SetImage(FarPoint.Win.Spread.SpreadView.SortAscendingImageDisabled, Image.FromFile("D:\up-dis.bmp"))
wrkbk.SetImage(FarPoint.Win.Spread.SpreadView.SortDescendingImage, Image.FromFile("D:\down.bmp"))
wrkbk.SetImage(FarPoint.Win.Spread.SpreadView.SortDescendingImageDisabled, Image.FromFile("D:\down-dis.bmp"))
wrkbk.SetImage(FarPoint.Win.Spread.SpreadView.SortUnsortedImage, Image.FromFile("D:\unsort.bmp"))
wrkbk.SetImage(FarPoint.Win.Spread.SpreadView.SortUnsortedImageDisabled, Image.FromFile("D:\unsort-dis.bmp"))

Dim r As New Random
Dim i, j As Integer
For i = 0 To 7
    For j = 0 To 7
        fpSpread1.ActiveSheet.SetValue(i, j, r.Next.ToString())
    Next j
Next i

fpSpread1.ActiveSheet.Columns(0).AllowAutoSort = True

Dim indicator As Image
indicator = wrkbk.GetImage(4)
PictureBox1.Image = indicator
解説
無効な降順ソートインジケータのインデックスは7です。
参照

SpreadView クラス
SpreadView メンバ
ユーザー インタフェース イメージのカスタマイズ

 

 


© MESCIUS inc. All rights reserved.