EasyByte Software

Welcome to EasyByte Software

Home Buy Online Products Downloads Support
Sections
Index
About
Installation
Properties
Methods
ASP and dotNET
Further Information
  

 

 

HTML_Colour Property
 
     

RTF-2-HTML v8 User Guide

 

HTML_Colour Property

This is the property that you set the background colour for the generated HTML.

 

Description

Specifies the backcolour of the generated HTML document.

     
Syntax

object.HTML_Colour [= x ]

The syntax of the HTML_Colour property has these parts:

 
Part Description
object An RTF-2-HTML v8 control.
x A string expression that specifies the HTML Backcolour.

You can specify the values for this property by either:

  • Specifying a colour by a word.
  • By specifying a hex value.
  • Using a colour property of another control.

These are the words that you can use along with the actual colour used. 

"black" = "000000"
"blue" = "0000FF"
"green" = "00FF00"
"cyan" = "FFFFFF"
"red" = "FF0000"
"magenta" = "FF00FF"
"yellow" = "FFFF00"
"white" = "FFFFFF"
"grey" = "B5B5B5"
"gray" = "B5B5B5"
"light blue" = "00008B"
"light green" = "90EE90"
"light cyan" = "E0FFFF"
"light red" = "FF6347"
"pink" = "FF80FF"
"brown" = "A52A2A"
"orange" = "FF8C00"

You can also specify the hex value for a colour like so:

rtf2html1.HTML_Colour = "0xffffff"
rtf2html1.HTML_Colour = "ffffff"

You can also specify the colour of a control like so: (Where Text1 is a Text Box containing a colour in one of the above formats)

rtf2html1.HTML_Colour = Text1.BackColor

       
Default white
       
Remarks

If whatever you specify for that value is invalid, then the control will default to using white.

     
Data Type

String

     
Example Sample Visual Basic Code:

Where rtf2html1 is an instance of an RTF-2-HTML Control.

rtf2html1.HTML_Colour = "0xffffff"
rtf2html1.HTML_Colour = "ffffff"
rtf2html1.HTML_Colour = "Red"
rtf2html1.HTML_Colour = "blue"

 

 

 

Back to Contents Page

 

Click here to set this great site as your home page

Or click here to add it to your Favorites.

  
  
 

Copyright (c) EasyByte Software 2007, info@easybyte.com