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


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SpreadImage Class : CanSize Property
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

Reference

SpreadImage Class
SpreadImage Members