Previous Document Next Document

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


CorelScript.SetParagraphSpacing

Function SetParagraphSpacing(FirstSelectedChar As Long, LastSelectedChar As Long, CharacterSpacing As Long, WordSpacing As Long, LineSpacing As Long, BeforeParagraph As Long, AfterParagraph As Long, Alignment As Long, AutoHyphenation As Boolean, HyphenHotZone As Long) As Long

Description

Member of CorelScript

The SetParagraphSpacing method specifies paragraph spacing.

 
The CorelScript.CreateTextString and CorelScript.SelectObjectsInRect methods must be called before this method.

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
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
BeforeParagraph
Specifies the spacing before paragraphs, in tenths of a percent
AfterParagraph
Specifies the spacing after paragraphs, in tenths of a percent
Alignment
Specifies the alignment:
 
0 = none
 
1 = left
 
2 = center
 
3 = right
 
4 = full justify
 
5 = force justify
AutoHyphenation
Specifies automatic hyphenation. True (-1) enables this option, while False (0) disables it.
HyphenHotZone
Specifies the size of the hyphenation hot-zone, in tenths of a micron

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.