Spread Windows Forms 6.0 Product Documentation
GetImage Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SpreadView Class : GetImage Method


id
Unique identifier that specifies which part of the interface in which the image is used

Glossary Item Box

Gets the graphic image used in the specified part of the user interface.

Syntax

Visual Basic (Declaration) 
Public Function GetImage( _
   ByVal id As Integer _
) As Image
Visual Basic (Usage)Copy Code
Dim instance As SpreadView
Dim id As Integer
Dim value As Image
 
value = instance.GetImage(id)
C# 
public Image GetImage( 
   int id
)

Parameters

id
Unique identifier that specifies which part of the interface in which the image is used

Return Value

Image object containing the image

Example

This example returns an image.
C#Copy Code
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());
Visual BasicCopy Code
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())

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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