![]() |
![]() |
StructFontProperties.Name
Property Name As String
Member of StructFontProperties
The Name property returns or specifies the name of a font face.
The following code example creates a centered text shape and applies a font face and size (Arial, 18 pt) to it:
Sub Test() Dim s As Shape Dim x As Double, y As Double x = ActivePage.SizeWidth / 2 y = ActivePage.SizeHeight / 2 Set s = ActiveLayer.CreateArtisticText(x, y, "Some Text String" & vbCr & "With Two Lines") s.Text.AlignProperties.Alignment = cdrCenterAlignment With s.Text.FontProperties .Name = "Arial" .Size = 18 End With End Sub
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.