Previous Document Next Document

Object Model Reference : Classes : S : StructFontProperties : Properties : StructFontProperties.Style


StructFontProperties.Style

Property Style As cdrFontStyle

Description

Member of StructFontProperties

The Style property returns or specifies the style of a font.

The Style property returns a value of cdrFontStyle.

VBA example

The following VBA example creates a text string and applies a bold, italic style to the first word.

Sub Test()
 Dim s As Shape
 Set s = ActiveLayer.CreateArtisticText(4, 5, "Highlight your ideas!")
 s.Text.FontPropertiesInRange(1, 1, cdrWordIndexing).Style = cdrBoldItalicFontStyle
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.