API Documentation > CorelDRAW > 2025-v26 > OnScreenText > IVGOnScreenText
OnScreenText.SetTextAndPosition method
Set the text and position
Syntax:
Sub SetTextAndPosition(ByVal Text As String, ByVal x As Double, ByVal y As Double, Optional ByVal align As cdrOnScreenTextAlign = cdrLeftOnScreenText, Optional ByVal xRef As Double = 0.5, Optional ByVal yRef As Double = 0.5)
Parameters:
Name Type Description
Text
String
x
Double
y
Double
align
xRef
Double
yRef
Double