Share via


DefaultWebOptions.AllowPNG Property 

True if PNG (Portable Network Graphics) is allowed as an image format when you save a document as a Web page. False if PNG is not allowed as an output format. The default value is False.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Dim defaultWebOptions1 As DefaultWebOptions

Dim returnValue As Boolean
returnValue = defaultWebOptions1.AllowPNG

Dim sampleValue As Boolean
defaultWebOptions1.AllowPNG = sampleValue

Syntax

Property AllowPNG() As Boolean
bool AllowPNG {get; set;}
property Boolean AllowPNG{
    Boolean get();
    Void set(Boolean);
}
public boolean get_AllowPNG();
public void set_AllowPNG(boolean);
function get AllowPNG() : Boolean;
function set AllowPNG(Boolean);

Remarks

If you save images in the PNG format and if the Web browsers you are targeting support the PNG format, you might improve the image quality or reduce the size of those image files, and therefore decrease the download time.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

DefaultWebOptions Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

DefaultWebOptions Members