Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / SpreadImage Class / PageIndex Property
Example


In This Topic
    PageIndex Property (SpreadImage)
    In This Topic
    Gets or sets a page index which the current spread image is displayed in.
    Syntax
    'Declaration
     
    Public Overridable Property PageIndex As Integer
    'Usage
     
    Dim instance As SpreadImage
    Dim value As Integer
     
    instance.PageIndex = value
     
    value = instance.PageIndex
    public virtual int PageIndex {get; set;}
    Example
    This example sets the PageIndex property.
    if (this.IsPostBack) return;
    FpSpread1.ActiveSheetView.RowCount = 50;
    FarPoint.Web.Spread.SpreadImage Image = new FarPoint.Web.Spread.SpreadImage();
    Image.PageIndex = 2;
    Image.ImageUrl = "fplogo.png";
    Image.Width = 200;
    Image.Height = 150;
    FpSpread1.ActiveSheetView.Images.Add(Image);
    If (Me.IsPostBack) Then Return
    FpSpread1.ActiveSheetView.RowCount = 50
    Dim Image As New FarPoint.Web.Spread.SpreadImage()
    Image.PageIndex = 2
    Image.ImageUrl = "fplogo.png"
    Image.Width = 200
    Image.Height = 150
    FpSpread1.ActiveSheetView.Images.Add(Image)
    See Also