Print Preview ActiveX Active Users: 22 / Visits Today: 22
Highest Active Users: 22
Print Preview ActiveX
Home | Profile | Register | Active Topics | Members | Search | FAQ | RSS
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Print Preview
 Help file
 LeadingType - Property
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic: LeftPositionPreviewWindow - Property Topic Next Topic: LeadingVal - Property  

emiel
Administrator

Belgium
327 Posts

Posted - 07/18/2005 :  12:41:01  Show Profile
Property LeadingType

Action:

This property sets or returns the current value for the type of leading and is interacting with LeadingVal.

Syntax:

LeadingType [ = LeadingType As eLeadingType]

Parameter      Description                     
  • LeadingType Type of leading to be used
    The LeadingType parameter can contain the following values:
    Constant          Value  Description            
    
  • prLTPercent 1 LeadingVal is percentage
  • prLTAbsolute 2 LeadingVal is absolute
  • prLTIncrement 3 LeadingVal is incremental
    Remarks:

    The leading (in twips) is added to the value of CurrentY and is updated by AddTextAt.

    Percentage leading means that each line can be spaced with help of the specified percentage of the FontSize and is set by LeadingVal. Note that, with AddTextAt, which adds Graphic text elements, the whole string is in the same font specification, including size. The space between lines is normally about 30-40 % of the FontSize.

    Absolute leading means that lines start at the specified distance (in twips) vertically, regardless of the FontSize of the text, thus CurrentY will increase with the value of LeadingVal.

    Incremental leading means that the specified distance is added between the lines. Zero increment means that lines are spaced according to the FontSize of the text, thus CurrentY will be the result of FontSize + standard Leading + LeadingVal (in twips).

    Note that the default value of Autostep for AddTextAt is prASLine which updates CurrentY according to the current LeadingVal.

    Example:

    To set two lines, separated by a half line space:

    Preview.LeadingType = prLTPercent
    Preview.LeadingVal = 80.0 ' remember the space between lines is about 30 - 40 %
    Preview.AddTextAt "Line One"
    Preview.AddTextAt "Line Two"

    See also:

    LeadingVal -> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=389
    AddTextAt ---> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=318

    Come and visit :
    www.immoassist.com
    www.ppreview.net
    www.vbdiamond.com
    www.d2dsources.com
    www.mandix.com

    Edited by - emiel on 07/18/2005 12:57:45
    Go to Bottom of Page
      Previous Topic: LeftPositionPreviewWindow - Property Topic Next Topic: LeadingVal - Property  
     New Topic  Topic Locked
     Printer Friendly
    Jump To:
    Print Preview ActiveX © Mandix Go To Top Of Page
    This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000 Version 3.4.02