Printer.FontUnderline 属性
获取或设置带下划线的字体样式。
命名空间: Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6
程序集: Microsoft.VisualBasic.PowerPacks.Vs(在 Microsoft.VisualBasic.PowerPacks.Vs.dll 中)
语法
声明
Public Property FontUnderline As Boolean
public bool FontUnderline { get; set; }
public:
property bool FontUnderline {
bool get ();
void set (bool value);
}
member FontUnderline : bool with get, set
function get FontUnderline () : boolean
function set FontUnderline (value : boolean)
属性值
类型:System.Boolean
返回一个 Boolean。
备注
为 Printer 对象,设置 FontUnderline 属性不影响已在对象上绘制文本。
备注
Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 命名空间中的函数和对象是提供给用于将 Visual Basic 6.0 升级到 Visual Basic 的工具使用的。大多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。只有 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时才需要这些函数和对象。
示例
下面的示例演示如何设置 FontUnderline 属性。
Dim pr As New Printer
pr.Print("This is a regular font")
pr.FontUnderline = True
pr.Print("This is an underlined font")
pr.EndDoc()
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 命名空间