Examples: Parent property (NotesRichTextStyle - LotusScript®)

This Visual Basic code displays the UserName property of the parent session of a NotesRichTextStyle object.

Private Sub ParentRTS_Click()
Dim s As New NotesSession
Dim r As NotesRichTextStyle
s.Initialize
Set r = s.CreateRichTextStyle
MsgBox r.Parent.UserName, , "Parent user name"
End Sub