Spread Windows Forms 11.0 Product Documentation
SetImage Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SpreadView Class : SetImage Method
Unique identifier of the part of the user interface
Image object that contains the graphic image
Sets the specified graphic for a specified part of the user interface.
Syntax
'Declaration
 
Public Sub SetImage( _
   ByVal id As Integer, _
   ByVal url As Image _
) 
'Usage
 
Dim instance As SpreadView
Dim id As Integer
Dim url As Image
 
instance.SetImage(id, url)
public void SetImage( 
   int id,
   Image url
)

Parameters

id
Unique identifier of the part of the user interface
url
Image object that contains the graphic image
Example
This example sets an image for the row selector.
fpSpread1.Sheets[0].ShowRowSelector = true;
FarPoint.Win.Spread.SpreadView wrkbk = fpSpread1.GetRootWorkbook();
wrkbk.SetImage(FarPoint.Win.Spread.SpreadView.RowSelectorImageDisabled, Image.FromFile("c:\\2.jpg"));
wrkbk.SetImage(FarPoint.Win.Spread.SpreadView.RowSelectorImage, Image.FromFile("c:\\1.jpg"));
Image indicator;
indicator = wrkbk.GetImage(14);
listBox1.Items.Add(indicator.ToString());
FpSpread1.Sheets(0).ShowRowSelector = True
Dim wrkbk As FarPoint.Win.Spread.SpreadView = FpSpread1.GetRootWorkbook()
wrkbk.SetImage(FarPoint.Win.Spread.SpreadView.RowSelectorImageDisabled, Image.FromFile("c:\2.jpg"))
wrkbk.SetImage(FarPoint.Win.Spread.SpreadView.RowSelectorImage, Image.FromFile("C:\icon1.ico"))
Dim indicator As Image
indicator = wrkbk.GetImage(14)
ListBox1.Items.Add(indicator.ToString())
See Also

Reference

SpreadView Class
SpreadView Members
GetImage Method

User-Task Documentation

Customizing the User Interface Images