Support.FontChangeBold(Font, Boolean) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862
更改字体的 Bold 样式位。
public:
static System::Drawing::Font ^ FontChangeBold(System::Drawing::Font ^ CurrentFont, bool Bold);
public static System.Drawing.Font FontChangeBold (System.Drawing.Font CurrentFont, bool Bold);
[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 FontChangeBold (System.Drawing.Font CurrentFont, bool Bold);
static member FontChangeBold : 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 FontChangeBold : System.Drawing.Font * bool -> System.Drawing.Font
Public Function FontChangeBold (CurrentFont As Font, Bold As Boolean) As Font
参数
返回
一个应用了新样式的 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 实现有显著区别时,才必须使用这些函数和对象。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈