API Documentation > CorelDRAW > 2025-v26 > TextRange > IVGTextRange
TextRange.Style property
Gets/sets the font style of the range
Syntax:
Property Get Style() As cdrFontStyle
Property Let Style(ByVal Value As cdrFontStyle)
Remarks:
The Style property returns of sets the font style of a text range.
Examples:
The following VBA example applies bold formatting to the paragraph:
Sub Test()
Dim d As Document
Dim s As Shape
Dim t As Text
Set d = CreateDocument
Set s = d.ActiveLayer.CreateParagraphText(2, 2, 4, 4, "This is an example.")
Set t = s.Text
t.Story.Style = cdrBoldFontStyle 
End Sub