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 As Shape, _
ByVal As Shape, _
ByVal As Shape, _
ByVal As Boolean, _
ByVal As ResizeAnchor, _
ByRef 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)
public void FitShapeInsideChart(
Shape ,
Shape ,
Shape ,
bool ,
ResizeAnchor ,
ref Size
)
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