VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.Pdf.Drawing Namespace / PdfGraphics Class / FillAndDrawRectangle Methods / FillAndDrawRectangle(PdfPen,PdfBrush,Single,Single,Single,Single) Method
Syntax Requirements SeeAlso
In This Topic
    FillAndDrawRectangle(PdfPen,PdfBrush,Single,Single,Single,Single) Method (PdfGraphics)
    In This Topic
    Fills and draws the rectangle specified by a coordinate pair, a width, and a height.
    Syntax
    'Declaration
    
    Public Overloads Sub FillAndDrawRectangle( _
    ByVal pen
    PdfPen that determines the color, width, and style of the rectangle border.
    As PdfPen, _
    ByVal brush
    PdfBrush that determines the characteristics of the fill.
    As PdfBrush, _
    ByVal x
    The x-coordinate of the bottom-left corner of the rectangle.
    As Single, _
    ByVal y
    The y-coordinate of the bottom-left corner of the rectangle.
    As Single, _
    ByVal width
    Width of the rectangle.
    As Single, _
    ByVal height
    Height of the rectangle.
    As Single _
    )
    public void FillAndDrawRectangle(
    PdfPen pen,
    PdfBrush brush,
    float x,
    float y,
    float width,
    float height
    )
    public: void FillAndDrawRectangle(
    PdfPen* pen,
    PdfBrush* brush,
    float x,
    float y,
    float width,
    float height
    )
    public:
    void FillAndDrawRectangle(
    PdfPen^ pen,
    PdfBrush^ brush,
    float x,
    float y,
    float width,
    float height
    )

    Parameters

    pen
    PdfPen that determines the color, width, and style of the rectangle border.
    brush
    PdfBrush that determines the characteristics of the fill.
    x
    The x-coordinate of the bottom-left corner of the rectangle.
    y
    The y-coordinate of the bottom-left corner of the rectangle.
    width
    Width of the rectangle.
    height
    Height of the rectangle.
    Requirements

    Target Platforms: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also