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


In This Topic
    CanSize Property (SpreadImage)
    In This Topic
    Gets or sets whether the image can be resized.
    Syntax
    'Declaration
     
    Public Overridable Property CanSize As Boolean
    'Usage
     
    Dim instance As SpreadImage
    Dim value As Boolean
     
    instance.CanSize = value
     
    value = instance.CanSize
    public virtual bool CanSize {get; set;}
    Example
    This example sets the CanSize property.
    FarPoint.Web.Spread.SpreadImage Image = new FarPoint.Web.Spread.SpreadImage();
    Image.CanSize = false;
    Image.CanPrint = true;
    Image.ID = "FirstImage";
    Image.ImageUrl = "fplogo.png";
    Image.Width = 200;
    Image.Height = 150;
    Image.Visible = true;
    FpSpread1.ActiveSheetView.Images.Add(Image);
    Dim Image As New FarPoint.Web.Spread.SpreadImage()
    Image.CanSize = False
    Image.CanPrint = True
    Image.ID = "FirstImage"
    Image.ImageUrl = "fplogo.png"
    Image.Width = 200
    Image.Height = 150
    Image.Visible = True
    FpSpread1.ActiveSheetView.Images.Add(Image)
    See Also