Previous Document Next Document

Object Model Reference : Classes : C : CorelScript : Methods : CorelScript.SetCharacterAttributes


CorelScript.SetCharacterAttributes

Function SetCharacterAttributes(FirstSelectedChar As Long, LastSelectedChar As Long, FontName As String, FontStyle As Long, PointSize As Long, Underline As Long, Overline As Long, StrikeOut As Long, Placement As Long, CharacterSpacing As Long, WordSpacing As Long, LineSpacing As Long, Alignment As Long) As Long

Description

Member of CorelScript

The SetCharacterAttributes method specifies the text attributes of a character.

Parameter
Description
FirstSelectedChar
Specifies the starting character of the selected text. The first character in a string is equal to 0.
LastSelectedChar
Specifies the ending character of the selected text
FontName
Specifies the font name
FontStyle
Specifies the font style:
 
7 = normal
 
8 = normal/italic
 
13 = bold
 
14 = bold/italic
PointSize
Specifies the font size, in tenths of a point
Underline
Specifies the type of underline:
 
0 = none
 
1 = single thin
 
2 = single thin words
 
3 = single thick
 
4 = single thick words
 
5 = double thin
 
6 = double thin words
Overline
Specifies the type of overline:
 
0 = none
 
1 = single thin
 
2 = single thin words
 
3 = single thick
 
4 = single thick words
 
5 = double thin
 
6 = double thin words
StrikeOut
Specifies the type of strike-out:
 
0 = none
 
1 = single thin
 
2 = single thin words
 
3 = single thick
 
4 = single thick words
 
5 = double thin
 
6 = double thin words
Placement
Specifies the font placement:
 
0 = normal
 
1 = superscript
 
2 = subscript
CharacterSpacing
Specifies the character spacing, in tenths o fa percent
WordSpacing
Specifies the word spacing, in tenths of a percent
LineSpacing
Specifies the line spacing, in tenths of a percent
Alignment
Specifies the alignment:
 
0 = none
 
1 = left
 
2 = center
 
3 = right
 
4 = full justify
 
5 = force justify

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.