Spread Windows Forms 7.0 Product Documentation
SortUnsortedImageDisabled Field
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SpreadView Class : SortUnsortedImageDisabled Field


Glossary Item Box

Specifies the index, 13, for the image for the disabled unsorted sort indicator.

Syntax

Visual Basic (Declaration) 
Public Const SortUnsortedImageDisabled As Integer
Visual Basic (Usage)Copy Code
Dim value As Integer
 
value = SpreadView.SortUnsortedImageDisabled
C# 
public const int SortUnsortedImageDisabled

Field Value

Integer index corresponding to this part of the user interface

Remarks

The index for the disabled unsorted sort indicator is 13.

Example

This example sets the image for the specified field.
C#Copy Code
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;
Visual BasicCopy Code
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

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.