API Documentation > CorelDRAW > 2025-v26 > ToolShape > IVGToolShape
ToolShape.OnGenerateShape method
Called when the shape is generated
Syntax:
Sub OnGenerateShape(ByVal Parent As Layer, ByVal ObjectProperties As Properties, ByVal pStyleAttributes As Style, ByVal pTransformation As TransformMatrix, ByVal IsPreviewOnly As Boolean)
Parameters:
Name Type Description
Parent
ObjectProperties
pStyleAttributes
pTransformation
IsPreviewOnly
Boolean