Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win Namespace / DropDownButtonElement Class / GetTextAndPictureRectangles Method
Graphics device
Rectangle object that contains the element coordinates
Returned rectangle of the picture
Returned rectangle of the text


In This Topic
    GetTextAndPictureRectangles Method (DropDownButtonElement)
    In This Topic
    Gets the rectangles for the text and pictures of the element.
    Syntax
    'Declaration
     
    
    Protected Overridable Sub GetTextAndPictureRectangles( _
       ByVal g As Graphics, _
       ByVal r As Rectangle, _
       ByRef rPict As Rectangle, _
       ByRef rText As Rectangle _
    ) 
    'Usage
     
    
    Dim instance As DropDownButtonElement
    Dim g As Graphics
    Dim r As Rectangle
    Dim rPict As Rectangle
    Dim rText As Rectangle
     
    instance.GetTextAndPictureRectangles(g, r, rPict, rText)
    protected virtual void GetTextAndPictureRectangles( 
       Graphics g,
       Rectangle r,
       ref Rectangle rPict,
       ref Rectangle rText
    )

    Parameters

    g
    Graphics device
    r
    Rectangle object that contains the element coordinates
    rPict
    Returned rectangle of the picture
    rText
    Returned rectangle of the text
    See Also