Partager via


EmailOptions.RelyOnCSS Property

Determines if cascading style sheets (CSS) are used for font formatting when you view a saved document in a Web browser.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Property RelyOnCSS As Boolean
    Get
    Set
'Usage
Dim instance As EmailOptions
Dim value As Boolean

value = instance.RelyOnCSS

instance.RelyOnCSS = value
bool RelyOnCSS { get; set; }

Property Value

Type: System.Boolean

Remarks

This property returns True if cascading style sheets are used, and False if HTML <FONT> tags and cascading style sheets are used. The default value is True.

Microsoft Word creates a cascading style sheet file and saves it either to the specified folder or to the same folder as your Web page, depending on the value of the OrganizeInFolder property.

You should set this property to True if your Web browser supports cascading style sheets because this will give you more precise layout and formatting control on your Web page and make it look more like your document (as it appears in Microsoft Word).

See Also

Reference

EmailOptions Interface

EmailOptions Members

Microsoft.Office.Interop.Word Namespace