API Documentation > CorelDRAW > 2025-v26 > StyleSheet > IVGStyleSheet
StyleSheet.CreateStyleSetFromTextRange method
Creates style sets from a text range
Syntax:
Function CreateStyleSetFromTextRange(ByVal TextRange As TextRange, Optional ByVal Name As String, Optional ByVal ReplaceExisting As Boolean = False) As Styles
Parameters:
Name Type Description
TextRange
Name
String
ReplaceExisting
Boolean
Remarks:
The CreateStyleSetFromTextRange method creates style sets from a range of text characters.