Print Preview ActiveX Active Users: 101 / Visits Today: 129
Highest Active Users: 101
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
 ApplyStyle - Method
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic: ArrayReport - Method Topic Next Topic: AllowMouseToZoom - Property  

emiel
Administrator

Belgium
327 Posts

Posted - 07/19/2005 :  13:00:37  Show Profile
Method ApplyStyle

Action:

This method applies an existing style to the following textlines.

Syntax:

ApplyStyle ( strStyleName As String )

Parameter       Description              
  • strStyleName Name assigned to style
    Remarks:

    A style is a collection of values that define the way a piece of text is displayed. There are several pre-defined styles (see below) but others can be created using the AddStyle Method.

    Pre-Defined Styles
    StyleName FontName FontSize FontBold FontUnderline FontItalic ForeColor BackColor 
    Normal     Times      10       False     False       False     vbBlack   vbWhite 
    Heading1   Arial      14       True      True        False     vbBlack   vbWhite 
    Heading2   Arial      12       True      False       True      vbBlack   vbWhite 
    Heading3   Arial      12       True      True        False     vbBlack   vbWhite 
    Heading4   Arial      12       True      False       True      vbBlack   vbWhite 
    Heading5   Arial      11       True      True        False     vbBlack   vbWhite
    Example:

    To use a style:

    Preview.ApplyStyle "Heading1"
    See Also:

    AddStyle -------> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=330
    GetStyle --------> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=385
    GetAllStyles --> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=383
    ModifyStyle ---> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=398

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


    Edited by - emiel on 07/27/2005 13:03:19
    Go to Bottom of Page
      Previous Topic: ArrayReport - Method Topic Next Topic: AllowMouseToZoom - 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