API Documentation > CorelDRAW > 2025-v26 > StyleSheet > IVGStyleSheet
StyleSheet.CreateStyleFromShape method
Creates styles from a shape
Syntax:
Function CreateStyleFromShape(ByVal Shape As Shape, ByVal Category As String, Optional ByVal Name As String, Optional ByVal ReplaceExisting As Boolean = False) As Styles
Parameters:
Name Type Description
Shape
Category
String
Name
String
ReplaceExisting
Boolean
Remarks:
The CreateStyleFromShape method creates styles from a shape.