Printer.FontTransparent 属性

获取或设置确定的值。 Printer 对象的背景图像是否在文本字符后打印。

命名空间:  Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6
程序集:  Microsoft.VisualBasic.PowerPacks.Vs(在 Microsoft.VisualBasic.PowerPacks.Vs.dll 中)

语法

声明
Public Property FontTransparent As Boolean
public bool FontTransparent { get; set; }
public:
property bool FontTransparent {
    bool get ();
    void set (bool value);
}
member FontTransparent : bool with get, set
function get FontTransparent () : boolean
function set FontTransparent (value : boolean)

属性值

类型:System.Boolean
返回一个 Boolean。

备注

当 FontTransparent 属性设置为 true,文本将打印在当前打印位置 (CurrentXCurrentY) 的任何图像的顶部。 在颜色与背景图像可能无法读取文本后的图像将可见,并且文本。

当 FontTransparent 属性设置为 false,文本在白色背景将打印,遮盖图像的区域在文本后面的。

备注

Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 命名空间中的函数和对象是提供给用于将 Visual Basic 6.0 升级到 Visual Basic 的工具使用的。大多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。只有 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时才需要这些函数和对象。

示例

下面的示例演示如何在页中打印图像的文本。 假定,您已添加名为 Image1 的图形资源添加到项目中。

Dim Printer As New Printer
Printer.PaintPicture(My.Resources.Image1, 0, 0)
' Set the print position to location of the image.
Printer.CurrentX = 0
Printer.CurrentY = 0
Printer.FontTransparent = True
Printer.Print("FontTransparent is True " & vbCrLf)
Printer.FontTransparent = False
Printer.Print("FontTransparent is False")
Printer.EndDoc()

.NET Framework 安全性

请参见

参考

Printer 类

Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 命名空间

其他资源

打印机兼容性库

如何:使用打印机兼容性库修复升级错误 (Visual Basic)

部署引用打印机兼容性库的应用程序