Spread Windows Forms 9.0 Product Documentation
PictureZoomEffect Property
Example 


Gets or sets whether the image has zoom effects.
Syntax
'Declaration
 
Public Property PictureZoomEffect As Boolean
'Usage
 
Dim instance As ButtonCellType
Dim value As Boolean
 
instance.PictureZoomEffect = value
 
value = instance.PictureZoomEffect
public bool PictureZoomEffect {get; set;}
Example
This example sets the PictureZoomEffect property.
FarPoint.Win.Spread.CellType.ButtonCellType butncell = new FarPoint.Win.Spread.CellType.ButtonCellType();
butncell.TwoState = true;
Image upimage;
Image dnimage;
upimage = Image.FromFile("C:\\SpreadWin\\cut.png");
dnimage = Image.FromFile("C:\\SpreadWin\\GreenCircle.png");
butncell.Picture = upimage;
butncell.PictureDown = dnimage;
butncell.TextAlign = FarPoint.Win.ButtonTextAlign.TextTopPictBottom;
butncell.Text = "Now up - Click";
butncell.TextDown = "Now down - Click";
butncell.PictureZoomEffect = true;
fpSpread1.Sheets[0].Cells[2, 2].CellType = butncell;
fpSpread1.AllowUserZoom = true;
Dim butncell As New FarPoint.Win.Spread.CellType.ButtonCellType()
butncell.TwoState = True
butncell.Picture = Image.FromFile("C:\\SpreadWin\\cut.png")
butncell.PictureDown = Image.FromFile("C:\\SpreadWin\\GreenCircle.png")
butncell.TextAlign = FarPoint.Win.ButtonTextAlign.TextTopPictBottom
butncell.Text = "Now up - Click"
butncell.TextDown = "Now down - Click"
butncell.PictureZoomEffect = True
FpSpread1.Sheets(0).Cells(2, 2).CellType = butncell
FpSpread1.AllowUserZoom = True
Requirements

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

See Also

Reference

ButtonCellType Class
ButtonCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.