API Documentation > CorelDRAW > 2025-v26 > StructAlignProperties > IVGStructAlignProperties
StructAlignProperties.CharacterRotation property
Syntax:
Property Get CharacterRotation() As Single
Property Let CharacterRotation(ByVal Value As Single)
Remarks:
The CharacterRotation property returns or specifies the rotation angle for the characters in a text object. This property is measured in degrees and has a maximum value of 360.
Examples:
The following VBA example creates a text object and rotates each character at a random angle.
Sub Test()
Dim s As Shape, i As Long
Dim sText As String
sText = "Random Text"
Set s = ActiveLayer.CreateArtisticText(0, 0, sText)
For i = 1 To Len(sText)
  s.Text.AlignPropertiesInRange(i, 1).CharacterRotation = (Rnd() - 0.5) * 90
Next i 
End Sub