Justification(Justification As _Justification_Justification_enum)
Description
Align text on the right or left margins, on both margins (including or not including the last line), or center it between the margins.
Parameters
Justification: enumeration Center!
DecAlign!
Full!
FullAll!
Left!
Right!
JustifyAll
Syntax
JustifyAll()
Description
Align all lines of text, including the last line of a paragraph, between the left and right margins from the current paragraph forward.
JustifyCenter
Syntax
JustifyCenter()
Description
Center all lines of text from the current paragraph forward.
JustifyFull
Syntax
JustifyFull()
Description
Align text, except the last line of each paragraph, along the left and right margins from the current paragraph forward.
JustifyLeft
Syntax
JustifyLeft()
Description
Align text at the left margin from the current paragraph forward.
JustifyRight
Syntax
JustifyRight()
Description
Align text at the right margin from the current paragraph forward.
KeepTextTogetherDlg
Syntax
KeepTextTogetherDlg()
Description
Display the Keep Text Together dialog box.
Kerning
Syntax
Kerning(State As _Kerning_State_enum)
Description
Turn Automatic Kerning on or off.
Parameters
State: enumeration Off!
On!
KerningSpacing
Syntax
KerningSpacing([KerningSpacingValue As Integer])
Description
Move the character to the right of the insertion point a specified distance to the left or right.
Parameters
KerningSpacingValue: measurement (optional) The distance to move the character. Negative values move left, positive values move right.
KeyboardSelect
Syntax
KeyboardSelect(Keyboard As String, [LoadedFromDefaultTemplate As _KeyboardSelect_LoadedFromDefaultTemplate_enum])
Description
Select a keyboard, such as WPWin 6.0 Keyboard or the Equation Editor Keyboard.
Parameters
Keyboard: string (optional) The name of the keyboard you want to use.
LoadedFromDefaultTemplate: enumeration No!
Yes!
KeyboardSelectDlg
Syntax
KeyboardSelectDlg()
Description
Display the Keyboard Preferences dialog box.
KeyType()
Syntax
KeyType([Text])
Paramater
Text - The string that you want to type.
Description
You can type the string you pass to this method in the WordPerfect document.
Example
In the following code fragment, a string variable called 'myString' is declared. This variable is populated with the string 'WordPerfect Office 2002'. The contents of 'myString' is passed ot KeyType(). The PS object references the PerfectScript class.
'***** Declare all variables
Dim PS as PerfectScript
Dim myString as String
'****** Allocate memory to the PerfectScript Object