PrivateFunction GetFontString()Function GetFontString(ByValStrAsString, ByVal WinFont As System.Drawing.Font) AsString Dim s AsString s ="<span style=""font-family:"& WinFont.Name
s +=";font-size:"& WinFont.Size.ToString &";"
If WinFont.Bold Then s +="font-weight:bold;"
If WinFont.Italic Then s +="font-style:italic;"
If WinFont.Underline Or WinFont.Strikeout Then s +="text-decoration:"
If WinFont.Underline Then s +=" underline"
If WinFont.Strikeout Then s +=" line-through"
EndIf s +=""">"&Str&"</span>"
Return s
End Function
posted on
2005-02-02 19:19vuejs3
阅读(1018)
评论(0)
收藏举报