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


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SpreadImage Class : ZIndex Property
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)
See Also

Reference

SpreadImage Class
SpreadImage Members