Support.FontChangeUnderline(Font, Boolean) 方法

定义

注意

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

更改字体的 Underline 样式位。

public:
 static System::Drawing::Font ^ FontChangeUnderline(System::Drawing::Font ^ CurrentFont, bool Underline);
public static System.Drawing.Font FontChangeUnderline(System.Drawing.Font CurrentFont, bool Underline);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static System.Drawing.Font FontChangeUnderline(System.Drawing.Font CurrentFont, bool Underline);
static member FontChangeUnderline : System.Drawing.Font * bool -> System.Drawing.Font
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member FontChangeUnderline : System.Drawing.Font * bool -> System.Drawing.Font
Public Function FontChangeUnderline (CurrentFont As Font, Underline As Boolean) As Font

参数

CurrentFont
Font

Font

Underline
Boolean

如果设置样式位, 则为

返回

应用了新样式的 A Font

属性

注解

在 Visual Basic 6.0 中,通过设置属性来应用字体样式;在Visual Basic字体样式中,使用 FontStyle 枚举应用字体样式。 升级工具使用此函数将 Visual Basic 6.0 属性转换为新的枚举。

注释

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象由用于从 Visual Basic 6.0 升级到 Visual Basic 2008 的工具使用。 在大多数情况下,这些函数和对象重复了可在 .NET Framework 中的其他命名空间中找到的功能。 仅当 Visual Basic 6.0 代码模型与 .NET Framework 实现明显不同时,它们才是必需的。

适用于