Print Preview ActiveX Active Users: 21 / Visits Today: 197
Highest Active Users: 99
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
 LeadingVal - Property
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic: LeadingType - Property Topic Next Topic: KillDoc - Method  

emiel
Administrator

Belgium
327 Posts

Posted - 07/18/2005 :  12:54:26  Show Profile
Property LeadingVal

Action:

This property sets or returns the current value for the leading.

Syntax:

LeadingVal [ = dblLeadingVal As Double]


Parameter     Description                
  • LeadingVal Value of leading to be used
    Remarks:

    Leading, in twips, is added to the value of CurrentY and CurrentY is updated by AddTextAt with standard leading of the font + Preview.Leading.

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

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

    Incremental leading means that the specified distance is added to the default value of CurrentY set by AddtextAt. Zero increment means that lines are spaced according to the FontSize, thus in this case CurrentY will be the result of FontSize + LeadingVal in twips.

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

    Example:

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

    Preview.LeadingType = prLTPercent
    Preview.LeadingVal = 150.0
    Preview.AddTextAt "Line One"
    Preview.AddTextAt "Line Two"

    To set two lines, separated by a half interline space (white between lines):

    Preview.LeadingType = prLTPercent
    Preview.LeadingVal = 80.0
    Preview.AddTextAt "Line One"
    Preview.AddTextAt "Line Two"

    See Also:

    LeadingType---> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=388
    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
    Go to Bottom of Page
      Previous Topic: LeadingType - Property Topic Next Topic: KillDoc - Method  
     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