Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Drawing Namespace / WorksheetDrawing Class / FitShapeInsideChart Method
The chart.
The active shape.
The processing shape.
True if inflate, otherwise no.
The resize anchor point.
The resize ratio based on active shape.


In This Topic
    FitShapeInsideChart Method
    In This Topic
    Corrects the resize ratio to fit the size of shape inside the chart boundary.
    Syntax
    'Declaration
     
    
    Public Sub FitShapeInsideChart( _
       ByVal chartShape As Shape, _
       ByVal activeShape As Shape, _
       ByVal processingShape As Shape, _
       ByVal inflate As Boolean, _
       ByVal resizeAnchor As ResizeAnchor, _
       ByRef resizeRatio As Size _
    ) 
    'Usage
     
    
    Dim instance As WorksheetDrawing
    Dim chartShape As Shape
    Dim activeShape As Shape
    Dim processingShape As Shape
    Dim inflate As Boolean
    Dim resizeAnchor As ResizeAnchor
    Dim resizeRatio As Size
     
    instance.FitShapeInsideChart(chartShape, activeShape, processingShape, inflate, resizeAnchor, resizeRatio)

    Parameters

    chartShape
    The chart.
    activeShape
    The active shape.
    processingShape
    The processing shape.
    inflate
    True if inflate, otherwise no.
    resizeAnchor
    The resize anchor point.
    resizeRatio
    The resize ratio based on active shape.
    See Also