Spread Windows Forms 7.0 Product Documentation
SetInsertSheetImage Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : SetInsertSheetImage Method


newSheetImage
Image to display for the insert sheet tab

Glossary Item Box

Sets the custom image displayed on the insert sheet tab.

Syntax

Visual Basic (Declaration) 
Public Sub SetInsertSheetImage( _
   ByVal newSheetImage As Image _
) 
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim newSheetImage As Image
 
instance.SetInsertSheetImage(newSheetImage)
C# 
public void SetInsertSheetImage( 
   Image newSheetImage
)

Parameters

newSheetImage
Image to display for the insert sheet tab

Example

This example adds an image to the new sheet tab.
C#Copy Code
fpSpread1.Sheets.Count = 2;
fpSpread1.SetInsertSheetImage(System.Drawing.Image.FromFile("C:\\SpreadWin\\cut.png"));
Visual BasicCopy Code
FpSpread1.Sheets.Count = 2
FpSpread1.SetInsertSheetImage(System.Drawing.Image.FromFile("C:\SpreadWin\cut.png"))

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.