Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Drawing Namespace / WorksheetDrawing Class / GetTextRectangle Method
The shape.


In This Topic
    GetTextRectangle Method (WorksheetDrawing)
    In This Topic
    Gets the virtual paint rectangle of the text part of a shape.
    Syntax
    'Declaration
     
    
    Public Function GetTextRectangle( _
       ByVal shape As Shape, _
       ByVal shapeRect As Rectangle _
    ) As Rectangle
    'Usage
     
    
    Dim instance As WorksheetDrawing
    Dim shape As Shape
    Dim shapeRect As Rectangle
    Dim value As Rectangle
     
    value = instance.GetTextRectangle(shape, shapeRect)
    public Rectangle GetTextRectangle( 
       Shape shape,
       Rectangle shapeRect
    )

    Parameters

    shape
    The shape.
    shapeRect

    Return Value

    A GrapeCity.Drawing.Rectangle value represents the painting rectangle of the text part.
    See Also