GdPicture.NET.14 (COM - ActiveX)~GdPicture14_namespace / GdPicture.NET.14 (COM - ActiveX)~GdPicture14.GdViewer / RectBorderSize Property
Example





In This Topic
    RectBorderSize Property (GdViewer)
    In This Topic
    Gets or sets the border size (the border width), in pixels, of the rectangle of area selection, that is related to the document currently displayed in the GdViewer control. This value is used when drawing the rectangle of selection within the control.

    You can find out, if this rectangle is currently defined and drawn, using the GdViewer.IsRect method.

    Syntax
    'Declaration
     
    
    Public Property RectBorderSize As Integer
    public int RectBorderSize {get; set;}
    public read-write property RectBorderSize: Integer; 
    public function get,set RectBorderSize : int
    public: __property int get_RectBorderSize();
    public: __property void set_RectBorderSize( 
       int value
    );
    public:
    property int RectBorderSize {
       int get();
       void set (    int value);
    }

    Property Value

    The default value is 1.
    Remarks
    Be aware that you are allowed to define only one rectangle of selection within the GdViewer control. The property value does not change when reloading documents in the control.
    Example
    How to reset the border size of the rectangle of selection.
    'We assume that the GdViewer1 control has been properly integrated.
    'Setting some custom properties (the border color and the border size) for the rectangle of selection.
    GdViewer1.SetRectBorderColor(GdViewer1.ARGBI(255, 255, 69, 0))
    GdViewer1.RectBorderSize = 2
    //We assume that the GdViewer1 control has been properly integrated
    //Setting some custom properties (the border color and the border size) for the rectangle of selection.
    GdViewer1.SetRectBorderColor(GdViewer1.ARGBI(255, 255, 69, 0));
    GdViewer1.RectBorderSize = 2;
    See Also

    Reference

    GdPicture.NET.14 (COM - ActiveX)~GdPicture14.GdViewer
    GdViewer Members
    SetRectBorderColor Method
    IsRect Method
    ClearRect Method