Spread for ASP.NET 10 Product Documentation
ZIndex Property (SpreadImage)
Example 


Gets or sets a zindex which the current spread image is displayed in.
Syntax
'Declaration
 
Public Overridable Property ZIndex As Integer
'Usage
 
Dim instance As SpreadImage
Dim value As Integer
 
instance.ZIndex = value
 
value = instance.ZIndex
public virtual int ZIndex {get; set;}
Example
This example sets the ZIndex property.
if (this.IsPostBack) return;
FpSpread1.ActiveSheetView.RowCount = 50;
FarPoint.Web.Spread.SpreadImage Image = new FarPoint.Web.Spread.SpreadImage();           
Image.ImageUrl = "fplogo.png";
Image.Width = 100;
Image.Height = 70;
Image.ZIndex = 1;
Image.Left = 80;
FpSpread1.ActiveSheetView.Images.Add(Image);

FarPoint.Web.Spread.SpreadImage Image1 = new FarPoint.Web.Spread.SpreadImage();
Image1.ImageUrl = "banana.png";
Image1.Width = 100;
Image1.Height = 70;
Image1.ZIndex = 0;
FpSpread1.ActiveSheetView.Images.Add(Image1);
If (Me.IsPostBack) Then Return
FpSpread1.ActiveSheetView.RowCount = 50
Dim Image As New FarPoint.Web.Spread.SpreadImage()
Image.ImageUrl = "fplogo.png"
Image.Width = 100
Image.Height = 70
Image.ZIndex = 1
Image.Left = 80
FpSpread1.ActiveSheetView.Images.Add(Image)

Dim Image1 As New FarPoint.Web.Spread.SpreadImage()
Image1.ImageUrl = "banana.png"
Image1.Width = 100
Image1.Height = 70
Image1.ZIndex = 0
FpSpread1.ActiveSheetView.Images.Add(Image1)
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

SpreadImage Class
SpreadImage Members

 

 


Copyright © GrapeCity, inc. All rights reserved.