ImageGear .NET v25.2 - Updated
ImageGear.Web Assembly / ImageGear.Web.UI Namespace / PageView Class / ViewRectangle Property




In This Topic
    ViewRectangle Property
    In This Topic
    Gets or sets the portion of the image that needs to be displayed.
    Syntax
    'Declaration
     
    <CategoryAttribute("PageView Properties")>
    <DescriptionAttribute("The PageView Rectangle coordinates for display.")>
    <DefaultValueAttribute(System.Drawing.RectangleF, "0, 0, 0, 0")>
    <BrowsableAttribute(True)>
    Public Property ViewRectangle As RectangleF
    'Usage
     
    Dim instance As PageView
    Dim value As RectangleF
     
    instance.ViewRectangle = value
     
    value = instance.ViewRectangle
    [Category("PageView Properties")]
    [Description("The PageView Rectangle coordinates for display.")]
    [DefaultValue(System.Drawing.RectangleF, "0, 0, 0, 0")]
    [Browsable(true)]
    public RectangleF ViewRectangle {get; set;}
    [Category("PageView Properties")]
    [Description("The PageView Rectangle coordinates for display.")]
    [DefaultValue(System.Drawing.RectangleF, "0, 0, 0, 0")]
    [Browsable(true)]
    public: __property RectangleF get_ViewRectangle();
    public: __property void set_ViewRectangle( 
       RectangleF value
    );
    [Category("PageView Properties")]
    [Description("The PageView Rectangle coordinates for display.")]
    [DefaultValue(System.Drawing.RectangleF, "0, 0, 0, 0")]
    [Browsable(true)]
    public:
    property RectangleF ViewRectangle {
       RectangleF get();
       void set (    RectangleF value);
    }
    Remarks

    The default value for this property is applied when this property is not set. The return default value is a rectangle with top, left, width, and height all set to zero.

    This property is a System.Drawing.RectangleF rectangle (contains top, left, width, and height properties) that indicates what portion of the image is currently being displayed. The units for the rectangle will be the same as the PageWidth and PageHeight properties (pixels for raster images and points for PDF images.)

    See Also