Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / FloatingObject Class / Height Property
Example


In This Topic
    Height Property (FloatingObject)
    In This Topic
    Gets or sets the height of the object in pixels.
    Syntax
    'Declaration
     
    Public Overrides Property Height As Unit
    'Usage
     
    Dim instance As FloatingObject
    Dim value As Unit
     
    instance.Height = value
     
    value = instance.Height
    public override Unit Height {get; set;}
    Exceptions
    ExceptionDescription
    if Height unit is not pixel.
    if Height value is not larger than zero.
    Example
    This example adds an image to the sheet.
    FarPoint.Web.Spread.SpreadImage image = new FarPoint.Web.Spread.SpreadImage();
    image.CanMove = true;
    image.CanSelect = true;
    image.ImageUrl = "fplogo.png";
    image.Width = 200;
    image.Height = 150;
    image.Left = 50;
    image.Top = 50;
    FpSpread1.ActiveSheetView.Images.Add(image);
    Dim Image As New FarPoint.Web.Spread.SpreadImage()
    Image.CanMove = True
    Image.CanSelect = True
    Image.ImageUrl = "fplogo.png"
    Image.Width = 200
    Image.Height = 150
    Image.Left = 50
    Image.Top = 50
    FpSpread1.ActiveSheetView.Images.Add(Image)
    See Also